/* =========================================================
   Osteria Notte — X風 公式アカウントページ（ライト）
   汎用ソーシャルタイムラインUI。Xの正式ロゴ等は使わない。
   表サイトのブランド（ワインレッド/生成りの白）に寄せる。
   ========================================================= */

:root{
  --x-bg        : #000000;   /* Lights out（ピュアブラック） */
  --x-cream     : #16181C;   /* 一段明るいサーフェス（カード/プレースホルダ/チップ） */
  --x-ink       : #E7E9EA;   /* 主要テキスト */
  --x-ink-2     : #AEB6BD;   /* 副次 */
  --x-ink-3     : #71767B;   /* 三次（ハンドル・時刻・補助） */
  --x-line      : #2F3336;   /* 罫線 */
  --x-hover     : #0A0A0B;   /* 行ホバー（ごく薄く） */
  --x-accent    : #1D9BF0;   /* X ブルー */
  --x-accent-dk : #1A8CD8;
  --x-gold      : #1D9BF0;   /* 認証バッジ（青） */
  --x-like      : #F91880;   /* いいね（ピンク） */
  --x-rt        : #00BA7C;   /* リポスト（緑） */
  --font-ui     : "Noto Sans JP", system-ui, -apple-system, sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
  --font-mono   : "IBM Plex Mono", ui-monospace, monospace;
}

*{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; }
body{
  margin:0; background:var(--x-bg); color:var(--x-ink);
  font-family:var(--font-ui); font-size:15px; line-height:1.5; font-weight:400;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
}
a{ color:inherit; text-decoration:none; }
img{ display:block; max-width:100%; }
svg{ display:block; }
.icon{ width:24px; height:24px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
.icon.sm{ width:18px; height:18px; stroke-width:2; }
.icon.fill{ fill:currentColor; stroke:none; }

/* ---- レイアウト 3カラム ---- */
.x-shell{ max-width:1265px; margin-inline:auto; display:grid;
  grid-template-columns:275px minmax(0,600px) 1fr; }
.x-nav, .x-aside{ position:sticky; top:0; height:100vh; }
.x-center{ border-inline:1px solid var(--x-line); min-height:100vh; }

/* ---- 左ナビ ---- */
.x-nav{ display:flex; flex-direction:column; padding:6px 10px 18px; gap:2px; }
.x-brand{ display:flex; align-items:center; gap:11px; padding:12px 13px; margin-bottom:4px; }
.x-brand .mark{ width:34px; height:34px; border-radius:50%; background:var(--x-cream); border:1px solid var(--x-line); color:var(--x-ink);
  display:grid; place-items:center; font-family:var(--font-display); font-weight:700; font-size:19px; }
.x-brand b{ font-family:"Noto Sans JP",system-ui,sans-serif; font-size:19px; font-weight:700; letter-spacing:.01em; }
.x-navitem{ display:flex; align-items:center; gap:17px; padding:11px 14px; border-radius:999px;
  font-size:19px; color:var(--x-ink); transition:background .15s; width:max-content; }
.x-navitem:hover{ background:var(--x-cream); }
.x-navitem.on{ font-weight:700; }
.x-post-btn{ margin:14px 6px 0; background:var(--x-accent); color:#fff; border:0; cursor:pointer;
  font-family:var(--font-ui); font-weight:700; font-size:16px; padding:15px; border-radius:999px;
  transition:background .15s; }
.x-post-btn:hover{ background:var(--x-accent-dk); }
.x-me{ margin-top:auto; display:flex; align-items:center; gap:11px; padding:11px 12px; border-radius:999px; transition:background .15s; }
.x-me:hover{ background:var(--x-cream); }
.x-me .av{ width:40px; height:40px; border-radius:50%; flex:none; }
.x-me .nm{ font-weight:700; font-size:14px; line-height:1.3; }
.x-me .hd{ color:var(--x-ink-3); font-size:13px; }
.x-me .dots{ margin-left:auto; color:var(--x-ink-2); }

/* ---- センター ---- */
.x-top{ position:sticky; top:0; z-index:10; backdrop-filter:saturate(150%) blur(12px);
  background:color-mix(in srgb, var(--x-bg) 82%, transparent); border-bottom:1px solid var(--x-line);
  display:flex; align-items:center; gap:22px; padding:0 16px; height:56px; }
.x-top .back{ display:grid; place-items:center; width:36px; height:36px; border-radius:50%; transition:background .15s; }
.x-top .back:hover{ background:var(--x-cream); }
.x-top h1{ font-size:20px; font-weight:800; margin:0; line-height:1.15; white-space:nowrap; }
.x-top > div{ min-width:0; }
.x-top .sub{ font-size:13px; color:var(--x-ink-3); margin-top:1px; }

/* バナー＋プロフィール */
.x-banner{ aspect-ratio:3/1; background:var(--x-cream); position:relative; }
.x-prof{ padding:12px 16px 16px; position:relative; }
.x-avatar{ width:133px; height:133px; border-radius:50%; border:4px solid var(--x-bg);
  position:absolute; top:-66px; left:16px; background:var(--x-cream); overflow:hidden; }
.x-prof-actions{ display:flex; justify-content:flex-end; gap:9px; min-height:38px; }
.x-btn-ghost{ border:1px solid var(--x-line); background:transparent; color:var(--x-ink);
  font-family:var(--font-ui); font-weight:700; font-size:14px; padding:8px 16px; border-radius:999px; cursor:pointer; transition:background .15s; }
.x-btn-ghost:hover{ background:var(--x-cream); }
.x-btn-follow{ border:0; background:var(--x-ink); color:var(--x-bg); font-weight:700; font-size:15px;
  padding:9px 20px; border-radius:999px; cursor:pointer; font-family:var(--font-ui); transition:opacity .15s; }
.x-btn-follow:hover{ opacity:.85; }
.x-btn-follow.following{ background:transparent; color:var(--x-ink); border:1px solid var(--x-line); }

.x-name{ margin-top:14px; }
.x-name .dn{ font-size:21px; font-weight:800; line-height:1.2; display:flex; align-items:center; gap:5px; }
.x-verified{ width:20px; height:20px; color:var(--x-gold); flex:none; }
.x-name .hd{ color:var(--x-ink-3); font-size:15px; margin-top:1px; }
.x-bio{ margin:12px 0 11px; font-size:15px; line-height:1.5; }
.x-meta{ display:flex; flex-wrap:wrap; gap:6px 16px; color:var(--x-ink-3); font-size:14px; margin-bottom:11px; }
.x-meta span{ display:inline-flex; align-items:center; gap:5px; }
.x-meta a{ color:var(--x-accent); }
.x-meta .icon{ width:17px; height:17px; stroke-width:2; }
.x-stats{ display:flex; gap:20px; font-size:14px; color:var(--x-ink-3); }
.x-stats b{ color:var(--x-ink); font-weight:700; }

/* タブ */
.x-tabs{ display:flex; border-bottom:1px solid var(--x-line); margin-top:15px; }
.x-tab{ flex:1; text-align:center; padding:16px 0 0; font-size:15px; font-weight:600; color:var(--x-ink-3);
  cursor:pointer; position:relative; transition:background .15s; }
.x-tab:hover{ background:var(--x-cream); }
.x-tab span{ display:inline-block; padding-bottom:15px; position:relative; }
.x-tab.on{ color:var(--x-ink); font-weight:800; }
.x-tab.on span::after{ content:""; position:absolute; left:0; right:0; bottom:0; height:4px;
  background:var(--x-accent); border-radius:999px; }

/* ---- ポスト ---- */
.x-feed{ }
.x-pinned{ display:flex; align-items:center; gap:8px; padding:10px 16px 0 16px; color:var(--x-ink-3);
  font-size:13px; font-weight:700; }
.x-pinned .icon{ width:16px; height:16px; stroke-width:2.2; }
.x-post{ display:grid; grid-template-columns:48px 1fr; gap:12px; padding:12px 16px; border-bottom:1px solid var(--x-line);
  cursor:pointer; transition:background .12s; }
.x-post:hover{ background:var(--x-hover); }
.x-post .av{ width:46px; height:46px; border-radius:50%; background:var(--x-cream); overflow:hidden; }
.x-head{ display:flex; align-items:center; gap:5px; flex-wrap:wrap; font-size:15px; line-height:1.3; }
.x-head .dn{ font-weight:700; }
.x-head .vb{ width:17px; height:17px; color:var(--x-gold); }
.x-head .hd, .x-head .dt{ color:var(--x-ink-3); font-weight:400; }
.x-head .dot{ color:var(--x-ink-3); }
.x-head .more{ margin-left:auto; color:var(--x-ink-3); }
.x-text{ margin:2px 0 0; font-size:15px; line-height:1.55; white-space:pre-wrap; }
.x-text .tag{ color:var(--x-accent); }
.x-media{ margin-top:11px; border:1px solid var(--x-line); border-radius:16px; overflow:hidden; aspect-ratio:16/10; }
.x-actions{ display:flex; justify-content:space-between; max-width:430px; margin-top:11px; color:var(--x-ink-3); }
.x-act{ display:inline-flex; align-items:center; gap:7px; font-size:13px; cursor:pointer; transition:color .15s; }
.x-act .icon{ width:18px; height:18px; stroke-width:1.9; }
.x-act.reply:hover{ color:var(--x-accent); }
.x-act.rt:hover{ color:var(--x-rt); }
.x-act.like:hover{ color:var(--x-like); }
.x-act.like.on{ color:var(--x-like); }
.x-act.like.on .icon{ fill:var(--x-like); stroke:var(--x-like); }
.x-act.view:hover{ color:var(--x-accent); }

/* プレースホルダ画像 */
.ph{ position:absolute; inset:0; width:100%; height:100%;
  background:var(--x-cream) repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 1px, transparent 1px 12px);
  display:flex; align-items:center; justify-content:center; }
.ph::after{ content:attr(data-label); font-family:var(--font-mono); font-size:10px; letter-spacing:.08em;
  color:var(--x-ink-3); text-align:center; padding:0 14px; line-height:1.6; }
.x-media .ph{ position:relative; }
/* 実画像を入れたプレースホルダ：ストライプとラベルを消して写真を表示 */
.ph.filled{ background-image:none; background-size:cover; background-position:center; background-repeat:no-repeat; }
.ph.filled::after{ display:none; }

/* ---- 右サイド ---- */
.x-aside{ padding:8px 24px 8px 22px; overflow-y:auto; }
.x-search{ position:sticky; top:0; background:var(--x-bg); padding:6px 0 12px; }
.x-search .field{ display:flex; align-items:center; gap:11px; background:var(--x-cream); border:1px solid transparent;
  border-radius:999px; padding:11px 16px; color:var(--x-ink-3); }
.x-search input{ border:0; background:transparent; outline:none; font-family:var(--font-ui); font-size:15px; color:var(--x-ink); width:100%; }
.x-search .field:focus-within{ background:var(--x-bg); border-color:var(--x-accent); color:var(--x-accent); }
.x-card{ background:var(--x-cream); border-radius:16px; margin-bottom:16px; overflow:hidden; }
.x-card h2{ font-size:19px; font-weight:800; margin:0; padding:14px 16px 6px; }
.x-trend{ padding:11px 16px; transition:background .15s; cursor:pointer; }
.x-trend:hover{ background:#1D1F23; }
.x-trend .c{ font-size:12px; color:var(--x-ink-3); }
.x-trend .t{ font-size:15px; font-weight:700; margin:1px 0; }
.x-trend .n{ font-size:12px; color:var(--x-ink-3); }
.x-follow{ display:flex; align-items:center; gap:11px; padding:11px 16px; transition:background .15s; }
.x-follow:hover{ background:#1D1F23; }
.x-follow .av{ width:42px; height:42px; border-radius:50%; background:var(--x-bg); overflow:hidden; flex:none; }
.x-follow .nm{ font-weight:700; font-size:14px; line-height:1.3; display:flex; align-items:center; gap:4px; }
.x-follow .vb{ width:15px; height:15px; color:var(--x-gold); }
.x-follow .hd{ color:var(--x-ink-3); font-size:13px; }
.x-follow .fbtn{ margin-left:auto; background:var(--x-ink); color:var(--x-bg); border:0; font-weight:700; font-size:13px;
  padding:7px 15px; border-radius:999px; cursor:pointer; font-family:var(--font-ui); transition:opacity .15s; }
.x-follow .fbtn:hover{ opacity:.85; }
.x-foot{ padding:8px 16px 24px; color:var(--x-ink-3); font-size:12px; line-height:1.9; }
.x-foot a{ margin-right:10px; }

/* ---- レスポンシブ ---- */
@media (max-width:1100px){
  .x-shell{ grid-template-columns:88px minmax(0,600px) 1fr; }
  .x-brand b, .x-navitem span, .x-post-btn span, .x-me .nm, .x-me .hd, .x-me .dots{ display:none; }
  .x-brand{ justify-content:center; padding:12px 0; }
  .x-navitem{ justify-content:center; padding:12px; width:auto; }
  .x-post-btn{ margin:14px auto 0; width:50px; height:50px; padding:0; display:grid; place-items:center; }
  .x-post-btn::after{ content:"+"; font-size:26px; line-height:1; }
  .x-me{ justify-content:center; }
}
@media (max-width:980px){
  .x-shell{ grid-template-columns:88px minmax(0,1fr); }
  .x-aside{ display:none; }
  .x-center{ border-right:0; }
}
@media (max-width:680px){
  .x-shell{ grid-template-columns:1fr; }
  .x-nav{ position:fixed; bottom:0; left:0; right:0; top:auto; height:auto; flex-direction:row;
    justify-content:space-around; align-items:center; background:var(--x-bg); border-top:1px solid var(--x-line);
    padding:6px 4px; z-index:50; gap:0; }
  .x-brand, .x-post-btn, .x-me{ display:none; }
  .x-navitem{ padding:10px; }
  .x-center{ border-inline:0; padding-bottom:64px; }
  .x-avatar{ width:92px; height:92px; top:-46px; }
  .x-banner{ aspect-ratio:3/1; }
  .x-actions{ max-width:none; }
}
