/*
Theme Name: Rossa Intelligence
Theme URI: https://rossa-intelligence.local/
Description: Whiteboard Diagnostic UI - Final Production Mode. Created for Inspector Rossa.
Version: 1.2
Author: Antigravity
Text Domain: rossa-intelligence
*/

:root {
    --glass-bg: rgba(255, 255, 255, 0.2);
    --glass-border: rgba(255, 255, 255, 0.4);
    --crime-color: #fee2e2;
    --field-color: #dcfce7;
    --log-color: #fef9c3;
    --etc-color: #f1f5f9;
    --accent-red: #ef4444;
}

/* 横スクロール絶対禁止 */
html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0; padding: 0;
}

body {
    background-image: url('assets/city_view.png'); 
    background-size: cover; background-position: center; background-attachment: fixed;
    min-height: 100vh;
    font-family: 'Noto Sans JP', sans-serif;
    color: #1e293b;
}

body::before {
    content: ""; position: fixed; inset: -5%; background: inherit;
    filter: brightness(1.1) contrast(0.9) blur(15px);
    z-index: -2; transform: scale(1.1);
}

.main-glass-board {
    background: var(--glass-bg); 
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    margin: 15px; padding: 30px 15px;
    max-width: 1150px;
    position: relative;
    z-index: 1;
    overflow: hidden; /* アクセントのはみ出しを抑える */
}

.board-accent {
    position: absolute;
    top: 30px;
    right: 25px;
    font-family: 'Shadows Into Light', cursive;
    font-size: 1.6rem;
    color: #475569; /* 知的な深みのあるスレートグレー */
    opacity: 0.45; /* ガラスにさらっと書いたような質感 */
    transform: rotate(-8deg); /* 右上がりのアクセント */
    pointer-events: none;
    z-index: 5;
    white-space: nowrap;
    letter-spacing: 0.05em;
}

@media (min-width: 768px) {
    .board-accent {
        top: 50px;
        right: 40px;
        font-size: 2.2rem;
    }
}

.site-header {
    margin-bottom: 20px;
    padding: 20px 0;
    position: sticky;
    top: 0; 
    background: transparent !important; /* 背景を完全透過 */
    backdrop-filter: none !important; /* 二重ブラーによる白濁を防止 */
    z-index: 100;
}

/* スクロール時の視認性はテキストシャドウで確保（背景は出さない） */
.site-header-scrolled .site-title a {
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8), 0 0 5px rgba(255, 255, 255, 1);
}

.site-title, .site-title a {
    color: #1e293b !important; font-family: 'Shippori Mincho', serif;
    font-weight: 700; font-size: 1.8rem; letter-spacing: 0.25em;
    text-align: center; display: block; text-decoration: none; margin-bottom: 5px;
    transition: text-shadow 0.3s;
}

.site-description {
    text-align: center;
    font-family: 'Shippori Mincho', serif;
    font-size: 0.95rem;
    color: #334155; 
    letter-spacing: 0.15em;
    margin-bottom: 20px;
    opacity: 0.8; 
    font-weight: 500;
}

@media (min-width: 768px) {
    .site-header { top: -60px; } /* PC版のpadding調整 */
    .site-title, .site-title a { font-size: 3.2rem; }
    .site-description { font-size: 1.1rem; margin-bottom: 40px; }
}

@media (min-width: 768px) {
    .main-glass-board { margin: 60px auto; padding: 60px 40px; }
    .site-title, .site-title a { font-size: 3.2rem; }
    .site-description { font-size: 1.1rem; margin-bottom: 70px; }
}

/* --- カテゴリナビ --- */
.category-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 80px;
}

@media (min-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 25px 20px;
    }
}

.category-group { position: relative; width: 100%; z-index: 1; }
.category-group.is-open { z-index: 100; }

.slim-note {
    background: #fff; height: 65px; padding: 10px 15px;
    box-shadow: 2px 4px 10px rgba(0,0,0,0.08);
    position: relative; z-index: 10; cursor: pointer; transition: 0.3s;
    display: flex; justify-content: space-between; align-items: center;
    border-radius: 2px;
}

.slim-note::before {
    content: ""; position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
    width: 35px; height: 18px; background: rgba(186, 186, 255, 0.35); backdrop-filter: blur(2px);
}

.slim-note .en { font-family: 'Shadows Into Light', cursive; font-size: 0.9rem; color: #64748b; }
.slim-note .jp { font-family: 'Shippori Mincho', serif; font-size: 1.2rem; font-weight: bold; text-decoration: none; color: inherit; }
.slim-note a.jp:hover { color: var(--accent-red); }

.category-group.crime .slim-note { background: var(--crime-color); transform: rotate(-0.5deg); }
.category-group.field .slim-note { background: var(--field-color); transform: rotate(0.8deg); }
.category-group.log .slim-note   { background: var(--log-color); transform: rotate(-1.2deg); }
.category-group.etc .slim-note   { background: var(--etc-color); transform: rotate(0.5deg); }

.category-group.is-open .child-drawer { 
    max-height: 500px; 
    opacity: 1; 
    padding: 20px 0 10px;
    transform: translateY(0); 
}
.child-drawer {
    list-style: none; margin: -10px auto 0; padding: 0; background: rgba(255, 255, 255, 0.98);
    width: 96%; border-radius: 0 0 10px 10px; box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    overflow: hidden; max-height: 0; opacity: 0; transition: all 0.4s ease; z-index: 5; position: relative;
}
@media (min-width: 768px) { 
    .child-drawer { position: absolute; top: 60px; width: 100%; margin: 0; } 
}
.child-drawer li a { display: block; padding: 10px 18px; text-decoration: none; color: #334155; font-size: 0.85rem; border-bottom: 1px dashed rgba(0,0,0,0.08); font-family: 'Shippori Mincho', serif; }

/* --- 投稿パネル（ポラロイド・エビデンス） --- */
.evidence-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    width: 100%;
    margin-top: 50px;
}

@media (min-width: 768px) {
    .evidence-grid {
        grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
        gap: 60px 40px;
    }
}

.evidence-card {
    background: #fff;
    padding: 15px 15px 60px 15px;
    box-shadow: 2px 15px 35px rgba(0,0,0,0.1);
    position: relative;
    transition: 0.4s;
    border-radius: 2px;
    margin-bottom: 20px;
    /* デフォルトで少し傾ける */
    transform: rotate(-1deg);
}

/* 交互に角度を変えてアンバランスさを演出 */
.evidence-card:nth-child(even) { transform: rotate(1.5deg); }
.evidence-card:nth-child(3n) { transform: rotate(-2deg); }
.evidence-card:nth-child(4n) { transform: rotate(0.8deg); }

.evidence-card:hover { transform: scale(1.05) rotate(0deg) !important; z-index: 20; }

.push-pin {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    background: radial-gradient(circle at 4px 4px, #ff8888, #ef4444);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 20;
}

.evidence-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border: 8px solid #f8fafc;
    box-sizing: border-box;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
    display: block;
}

.case-badge {
    display: inline-block;
    background: var(--accent-red);
    color: #fff;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 900;
    font-size: 0.75rem;
    padding: 3px 15px;
    border-radius: 20px;
    margin: 15px 0 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.evidence-title, .evidence-title a {
    margin: 0;
    font-family: 'Shippori Mincho', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b !important;
    line-height: 1.5;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.evidence-meta {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-family: 'Shadows Into Light', cursive;
    color: #94a3b8;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
}

.new-p1 {
    position: absolute; top: 15px; right: 15px;
    border: 3px double #ef4444; color: #ef4444; font-family: 'Shippori Mincho', serif;
    font-weight: 900; padding: 2px 8px; transform: rotate(15deg);
    opacity: 0.6; border-radius: 4px; font-size: 0.9rem; transition: 0.3s;
    z-index: 10;
}
/* --- Logos & Footer --- */
.site-footer {
    margin-top: 80px;
    padding: 60px 0 40px;
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-logo-11 {
    display: inline-block;
    background: var(--accent-red);
    color: #fff;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 900;
    font-size: 1.4rem;
    padding: 2px 20px;
    letter-spacing: 0.3em;
    margin-bottom: 20px;
    transform: skew(-5deg);
    box-shadow: 3px 3px 0 rgba(0,0,0,0.1);
}

.copyright {
    font-family: 'Shippori Mincho', serif;
    font-size: 0.8rem;
    color: #94a3b8;
    letter-spacing: 0.05em;
}

/* Post Signature (Logo 01) */
.post-signature-hanko {
    margin-top: 50px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    opacity: 0.8;
}

.hanko-mark {
    border: 2px solid var(--accent-red);
    color: var(--accent-red);
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 900;
    font-size: 1.4rem;
    padding: 5px 8px;
    border-radius: 4px;
    transform: rotate(-5deg);
}

.hanko-text {
    font-family: 'Shadows Into Light', 'Shippori Mincho', cursive, serif;
    font-size: 1.1rem;
    color: #64748b;
    letter-spacing: 0.05em;
}

/* --- 案05: 捜査台帳 (Evidence Ledger) --- */
.evidence-ledger {
    background: #f8fafc;
    margin: 80px auto 40px;
    max-width: 900px;
    box-shadow: 10px 10px 0 rgba(0,0,0,0.1), 0 5px 20px rgba(0,0,0,0.05);
    border-left: 12px solid #64748b;
    position: relative;
    border-radius: 2px;
}

.ledger-header {
    background: #e2e8f0;
    margin: 0;
    padding: 12px 25px;
    font-family: 'Shadows Into Light', cursive;
    font-size: 1.4rem;
    color: #334155;
    border-bottom: 2px solid #cbd5e1;
}

.ledger-body {
    padding: 20px 30px;
}

.ledger-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid #e2e8f0;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1rem;
    color: #475569;
}

.ledger-line:last-child { border-bottom: none; }

.ledger-line .date { width: 110px; font-family: 'Shadows Into Light', cursive; font-size: 1.3rem; color: #94a3b8; }
.ledger-line .title { flex: 1; color: #1e293b; text-decoration: none; font-weight: bold; transition: 0.2s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 15px; font-size: 1.25rem; }
.ledger-line .title:hover { color: var(--accent-red); padding-left: 20px; }
.ledger-line .case-id { font-family: 'Shadows Into Light', cursive; font-size: 1.1rem; color: #cbd5e1; }

.ledger-line.none { justify-content: center; color: #94a3b8; font-style: italic; }

.ledger-footer {
    padding: 25px 0 10px;
    text-align: center;
}

.ledger-footer a {
    font-family: 'Shadows Into Light', cursive;
    font-size: 1.2rem;
    color: var(--accent-red);
    text-decoration: none;
    letter-spacing: 0.1em;
    font-weight: bold;
    border: 1px dashed var(--accent-red);
    padding: 5px 20px;
    transition: 0.3s;
}

.ledger-footer a:hover { background: var(--accent-red); color: #fff; }

@media (max-width: 768px) {
    .evidence-ledger { margin: 60px 10px 40px; }
    .ledger-line { flex-wrap: wrap; }
    .ledger-line .date { width: 100%; border-bottom: 1px dotted #eee; margin-bottom: 5px; }
    .ledger-line .case-id { display: none; }
}
