/* --- レイアウト・共通 --- */
/* 既存のクラスに1行追加 */
.header-image-container {
    width: 100%; 
    height: 120px; 
    overflow: hidden; 
    border-radius: 2px;
    margin-bottom: 30px; 
    box-shadow: 0 9px 15px rgba(0,0,0,0.15);
    position: relative; /* ★これをつけることで中のボタンを画像基準で配置できる */
}

.header-image-container img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

/* ボタンをまとめる箱（PC時は右下固定） */
.header-image-links {
    position: absolute;
    bottom: 6px; /* ご指定のサイズに準拠 */
    right: 15px;
    display: flex;
    gap: 8px;
    z-index: 2;
}

/* 1. 通常ボタン（サイトについて / サイトの見方）：透き通るガラスのような洗練されたデザイン */
.header-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;    
    height: 36px;       
    font-size: 15px;    
    font-weight: bold;
    color: #fff;
    
    /* 【洗練化】真ん中の透明度を上げつつ、上から下にわずかにグラデーションさせて本物のガラス感を表現 */
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(0, 0, 0, 0.25) 100%);
    
    /* 【洗練化】ボーダーは1pxではなく0.5pxに見える極薄白。さらに下側を少し暗くして立体的に */
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-bottom-color: rgba(255, 255, 255, 0.15);
    
    /* 【洗練化】角丸をスマートな 2px に引き締め（4pxの野暮ったさを解消） */
    border-radius: 2px; 
    
    text-decoration: none;
    backdrop-filter: blur(8px); /* ぼかしを少し強めて、後ろの画像と上品に分離 */
    -webkit-backdrop-filter: blur(8px);
    
    /* 【洗練化】ボタン自体が背景から浮き出て見えるよう、ごくわずかな影を落とす */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    
    letter-spacing: 0.03em; /* 文字の詰まり感をなくすため、わずかに字間を広げる */
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ホバーした時のエフェクト（ぬるっと白く浮き上がる） */
.header-link-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #111;
    border-color: #fff;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
    transform: translateY(-1px); /* ホバー時にほんの1pxだけ上に浮くリッチな演出 */
}

/* 2. Xボタン専用：高級感のあるダークガラス風に引き締める */
.header-link-btn.is-x {
    /* 真ん中を濃い黒にして存在感を出しつつ、完全に塗りつぶさず極わずかにシースルーに */
    background: linear-gradient(180deg, rgba(30, 30, 30, 0.9) 0%, rgba(10, 10, 10, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-bottom-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Xボタンのホバー */
.header-link-btn.is-x:hover {
    background: #ffffff;
    color: #000;
    border-color: #fff;
    transform: translateY(-1px);
}






.top-layout-split { 
    display: flex; gap: 30px; margin-bottom: 40px; align-items: center; 
}
.top-side-nav-container { flex: 0 0 240px; }
.top-side-nav { display: flex; flex-direction: column; gap: 12px; }

/* --- 更新履歴カードの修正 --- */
.top-news-card, .top-main-card {
    flex: 1;
    background: #fff;
    /* 1. 角丸はそのまま */
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    /* 2. 枠線（border）は薄いもの1つにするか、なしにする */
    border: 1px solid #eee; /* 薄い枠線 */
    /* ここにあった border-left は削除します */
    
    overflow: hidden; /* 角丸からはみ出た要素を隠す */
    display: flex;
    flex-direction: column;
    
    /* 3. 【重要】疑似要素（左線）を置くための基準を作る */
    position: relative; 
    
    /* 4. 左線の幅分、内側のコンテンツを右にずらす */
    padding-left: 10px; /* 左線の幅（例：8px）+ 余白（2px）くらい */
}

/* 左端に色線を置く疑似要素 */
.top-news-card::before, .top-main-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 5px; /* 線の太さ */
    height: 100%; /* 上下いっぱい */
    background-color: #283b73; /* 線の色 */
    
    /* 5. 【超重要】左線自体にも角丸をかける */
    /* 左上と左下だけ丸くする */
    border-radius: 8px 0 0 8px; 
}

/* --- 更新履歴カードのヘッダー修正 --- */
.top-card-header {
    background: #fff; 
    color: #071265; 
    /* paddingを調整：上下 18px、左右 25px（bodyのpaddingに合わせると綺麗です） */
    padding: 15px 15px 8px; 
    /* 中央寄せから左寄せに変更 */
    text-align: left; 
    font-size: 1.15em; 
    font-weight: 900; 
    /* 下線を消去 */
    border-bottom: none; 
    line-height: 1;
}


/* bodyとの間隔が詰まりすぎると感じる場合は、body側に少し上の余白を足すとバランスが良いです */
.top-news-body, .top-card-body { 
    padding: 5px 25px 0px; /* 上を少し詰め、横と下を確保 */
}
.top-card-footer { padding: 6px 20px; text-align: right; background: #fafafa; border-top: 1px solid #eee; }





/* --- ラベル・日付 --- */
.label-common {
    padding: 3px 10px; border-radius: 4px; color: #fff;
    font-size: 0.72em;  white-space: nowrap;
}
.label-new { background-color: #28a745; }
.label-update { background-color: #007bff; }
.label-info { background-color: #f39c12; }

.cat-tag-gray {
    background-color: #eee; color: #666; font-size: 0.72em;
    padding: 2px 8px; border-radius: 3px; flex-shrink: 0;
}
.news-date-peculiar { 
    font-family: inherit; color: #666666; font-size: 0.95em;  flex-shrink: 0; 
}

.news-item-quirky {
    border-bottom: 1px dotted #ccc; padding: 8px 0; display: flex; gap: 12px; align-items: center;
}
.news-link-fancy { color: #333; text-decoration: none;  bold; flex-grow: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;  }
.news-more-link { font-size: 0.85em; color: #071265; font-weight: bold; text-decoration: none; }





/* --- 重厚ボタン（サイズ固定版） --- */
.custom-btn {
    /* inline-blockにすることで横並びを可能にしつつ、幅を指定できるようにする */
    display: inline-flex; 
    align-items: center;
    justify-content: center;
    
    /* サイズの固定（お好みの数値に調整してください） */
    width: 150px;   /* 横幅を固定 */
    height: 54px;   /* 高さも固定すると揃って綺麗です */
    
    padding: 0 10px; /* 横幅を固定したので上下のpaddingは0、左右は微調整用に */
    background: #7f7f7f; 
    color: #fff;
    text-align: center; 
    text-decoration: none; 
    font-weight: bold; 
    border-radius: 5px; 
    transition: 0.2s;
    font-size: 0.9em;
}

.custom-btn:hover { 
    background: #444; 
    transform: translateY(-2px); 
    box-shadow: 0 4px 10px rgba(0,0,0,0.2); 
}

.x-brand { background: #000 !important; }
/* --- トップ限定ラベル --- */
.top-card-label-wrapper { position: relative; display: block; }
.top-exclusive-label {
    position: absolute; bottom: 15px; left: 10px; z-index: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* セクションタイトル（日本語） */
.top-section-title {
    text-align: center; font-size: 1.7em; color: #071265;
    margin: 60px 0 25px; font-weight: 900; 
}

/* CONTENTS NAVIGATION に代わる日本語ラベル */
.nav-label { 
    font-weight: 900; color: #071265; margin-bottom: 15px; 
    border-left: 6px solid #283b73; padding-left: 12px; 
    letter-spacing: 0.05em; font-size: 1.05em;
}
/* ボタンを並べるコンテナ */
.button-grid {
    display: flex;       /* 横並びにする */
    flex-wrap: wrap;     /* 画面端まで行ったら折り返す */
    gap: 12px;           /* ボタン同士の間隔 */
    justify-content: flex-start; /* 左寄せ */
    margin-top: 15px;
    margin-bottom: 30px;

}


/* --- 8. レスポンシブ対応（余白の修正） --- */
@media (max-width: 768px) {
    .container { padding: 0 10px !important; }
    .幅狭 { width: 100% !important; padding: 0 !important; }
.container { 
        padding-top: 45px !important; /* ヘッダーの高さ(75px) + 余裕(10px) */
    }
    
/* --- レスポンシブ（スマホ対応）：スマホ時はボタンを非表示にする --- */
@media (max-width: 768px) {
    .header-image-container { 
        height: 110px; 
        border-radius: 0; 
        margin-left: 10px; 
        margin-right: -10px; 
        width: calc(100% - 18px);
    }
    
    /* スマホ時はヘッダー画像上のボタン群を完全に消去 */
    .header-image-links {
        display: none !important;
    }
}

    
    .top-layout-split { flex-direction: column; align-items: stretch; gap: 20px; }
    .top-side-nav-container { order: 2; width: 100%; }
    .top-news-card { order: 1; }
    
    .top-news-body { padding: 15px; }
    
    .news-item-quirky { flex-wrap: wrap; gap: 8px; }
    .news-link-fancy { width: 100%; order: 4; white-space: normal; }
    
    .p-search-results-body {
        gap: 15px; 
        padding: 0;
    }

    .button-grid { grid-template-columns: 1fr; }
    
    /* スマホでのタイトルサイズ微調整 */
    .top-card-header { font-size: 1.1em; padding: 15px; }
    .top-section-title { font-size: 1.25em; margin: 40px 0 20px; }
}







/* 1. 通常時のテキスト設定（下線なし・色の変化を滑らかに） */
.news-link-fancy {
    color: #333 !important; /* 通常時の文字色 */
    text-decoration: none !important; /* 下線を完全に消去 */
    transition: color 0.1s ease; /* 鉄道掲示板のようなキビキビした反応 */
}

/* 2. カーソルを合わせた時・タップした時の「文字の色」だけを変更 */
.news-item-quirky:hover .news-link-fancy,
.news-item-quirky:active .news-link-fancy {
    color: #005bac !important; /* ここに好きな色を指定（例：JR風の青） */
    text-decoration: none !important; /* ホバー時も下線を出さない */
}

/* 3. 枠全体の色の変化や、スマホ特有のハイライトを完全に無効化 */
.news-item-quirky,
.news-item-quirky:hover,
.news-item-quirky:active {
    background-color: transparent !important; /* 枠が濃くなるのを防ぐ */
    -webkit-tap-highlight-color: transparent !important; /* スマホのタップ時の色付けを消す */
}

/* aタグ自体のデフォルトの下線も念のため消去 */
a.news-link-fancy:hover {
    text-decoration: none !important;
}




