/* =========================================
   1. 検索フィルター（新規・アニメーション設定）
   ========================================= */
.information-filteringsearch {
    /* 初期状態：閉じていて透明 */
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transform: translateY(-10px);
    transition: 
        max-height 0.4s ease, 
        opacity 0.4s ease, 
        transform 0.4s ease,
        visibility 0.4s;
    
    /* 検索窓自体のスタイル（お好みで調整） */
    margin: 0 10px;
    padding: 0 15px;
    align-items: center;
    gap: 10px;
    width: 90%;
}

/* ボタンクリック時に付与されるクラス */
.information-filteringsearch.is-active {
    max-height: 300px; /* 検索窓の高さに合わせて調整 */
    height: 300px;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    margin-top: 10px;
    margin-bottom: 20px;
}

/* 検索入力欄のスタイル（一例） */
.information-filteringsearch input[type="text"] {
    width: 90%;
    padding: 10px 15px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    color: inherit;
}
.information-filteringsearch p.date-wrap label input.date-input {
    width: 45%;
}

/* =========================================
   2. スクロールエリア（既存＋アニメーション）
   ========================================= */
.scroll {
    position: relative;
    width: 100%;
    max-height: 500px;
    overflow-y: auto;
    overflow-x: hidden;
    overflow-anchor: none;

    /* 変数を使ってマスクの透明度を制御 */
    --mask-top: transparent;
    --mask-bottom: transparent;

    -webkit-mask-image: linear-gradient(
        to bottom,
        var(--mask-top) 0%,
        black 10%,
        black 90%,
        var(--mask-bottom) 100%
    );
    mask-image: linear-gradient(
        to bottom,
        var(--mask-top) 0%,
        black 10%,
        black 90%,
        var(--mask-bottom) 100%
    );
    
    transition: transform 0.4s ease, -webkit-mask-image 0.3s, mask-image 0.3s;
    will-change: transform;
 
}

.scroll.is-pushed {
    transform: translateY(10px);
}

#scrollInfo {
    transition: min-height 0.3s;
}

/* =========================================
   3. インフォメーションカード（既存）
   ========================================= */
.information_card {
    opacity: 90%;
    margin: -1px 0;
    background: #ddd;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 1px;
    padding: 20px 0 20px;
    color: #000;
    width: 100%;
    height: 100px;
    position: relative;
    transition: transform .3s , box-shadow .3s;
    cursor: pointer;
}

.information_header {
    display: flex;
}

.information_date, input[type="datetime-local"] {
    font-size: 15px;
    color: #888;
    margin: 0;
    padding: 0;
}

.new-status { color: red!important; }
.edit-status { background: #095!important; }
.information_status { color: #f60!important; }
.important_highlight { background: #fed!important; }
.limited_highlight { background: #dff!important; }

.information_content, .information_content input[type="text"] {
    font-size: 12px;
    white-space: nowrap;
    margin-top: -100px;
    height: 130px;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
}

.information_content h1 {
    border: none!important;
}

.information_tags {
    display: flex;
    align-items: center;
    margin-top: 10px;
    overflow-x: auto;
    overflow-y: hidden;
}

.information_tag {
    background: #1e90ff;
    color: #fff;
    padding: 4px;
    margin: 0 10px;
    border-radius: 4px;
    font-size: 10px;
    display: flex;
    text-shadow: 1px 1px 5px #000;
    transition: background .3s;
}

.info-section {
    word-wrap: break-word;
    white-space: normal;
    width: 100%;
    overflow-y: auto;
    height: 55vh;
    margin: 70px auto;
    background: #ddd;
    box-shadow: 0 0 10px rgba(0,0,0,.1)
}

.info-section article p {
    padding: 10px
}

/* =========================================
   4. ボタン（グラスモーフィズム既存）
   ========================================= */
.sort-btn,
#filtersearch-block {
    padding: 5px 10px;
    margin: 0 5px;
    backdrop-filter: blur(60px) saturate(250%) contrast(110%) brightness(102%) !important;
    -webkit-backdrop-filter: blur(60px) saturate(250%) contrast(110%) brightness(102%) !important;
    background: 
      linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 40%, rgba(255,255,255,0) 60%, rgba(255,255,255,0.1) 100%),
      radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%) !important;
    box-shadow: 
      0 30px 60px rgba(0, 0, 0, 0.2),
      inset 0 0 0 1px rgba(255, 255, 255, 0.4),
      inset 0 0 25px rgba(255, 255, 255, 0.3),
      inset -10px -15px 40px rgba(255, 255, 255, 0.1),
      inset 2px 2px 4px rgba(255, 255, 255, 0.7) !important;
    border: 0.5px solid rgba(255, 255, 255, 0.2) !important;
    border-top: 1.5px solid rgba(255, 255, 255, 0.8) !important;
    border-radius: 40px;
    cursor: pointer;
    color: #000;
    transition: background-color 0.3s, color 0.3s;
}

.sort-btn:hover,
#filtersearch-block:hover {
    background-color: #00b4b6;
    color: #fff;
}

/* =========================================
   5. カラーバリエーション & ダークモード
   ========================================= */
.infoNull { border-left: 4px solid #999 }
.infoNotice { border-left: 4px solid #f1a1e3 }
.infoUp { border-left: 4px solid #b8b8f8 }
.infoOff { border-left: 4px solid #ffe89e }
.infoBlog { border-left: 4px solid #08d6c5 }
.infoDri { border-left: 4px solid #ee4caa }
.infoGam { border-left: 4px solid #f55 }
.infoYt { border-left: 4px solid #cd201f }
.infoFre { border-left: 4px solid #80eb74 }
.infoAmeb { border-left: 4px solid #007950 }
.infoMusic { border-left: 4px solid #ebb874 }
.infoSe { border-left: 4px solid #56dce3 }
.infoScreen { border-left: 4px solid #60e19e }
.infoBeta { border-left: 4px solid #7f8c8d }

@media (prefers-color-scheme: dark) {
    body { background:#111; color: #fff }
    .information_card { background: #444; color: #fff }
    .important_highlight { background: #654!important }
    .limited_highlight { background: #465!important }
    .info-section { background: #444!important }
    .info-section article { color: #fff!important }
    .sort-btn, #filtersearch-block { color: #fff !important; }
}
