/* Baccarat+ Blog 共通スタイル — LP本体のダーク+ゴールドに合わせる */

:root {
  --gold:        #c9a84c;
  --gold-light:  #e8cc7a;
  --gold-dim:    rgba(201,168,76,0.15);
  --bg:          #08080a;
  --bg2:         #111114;
  --bg3:         #1a1a1e;
  --bg4:         #232328;
  --border:      #2a2a32;
  --border2:     #3a3a44;
  --text:        #ededef;
  --text-muted:  #c0c0cc;
  --text-dim:    #7a7a88;
  --banker:      #e05555;
  --player:      #4b8fd4;
  --tie:         #3da06a;
  --radius:      10px;
  --radius-lg:   16px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.85;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }

a { color: var(--gold-light); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold); }

/* ── ナビ ── */
nav.blog-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8,8,10,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 14px clamp(20px,4vw,48px);
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
nav.blog-nav .logo {
  font-size: 18px; font-weight: 700; color: var(--gold);
  letter-spacing: 1.5px; display: flex; align-items: center; gap: 10px;
  white-space: nowrap; text-decoration: none;
  flex-shrink: 0;
}
nav.blog-nav .logo img { height: 28px; }
nav.blog-nav ul {
  list-style: none; display: flex; gap: 8px; align-items: center;
  margin: 0; padding: 0;
}
nav.blog-nav ul a {
  color: var(--text); font-size: 14px; font-weight: 500;
  padding: 8px 16px; border-radius: 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  white-space: nowrap; text-decoration: none;
  display: inline-block;
}
nav.blog-nav ul a:hover {
  background: rgba(201,168,76,0.12);
  border-color: rgba(201,168,76,0.35);
  color: var(--gold);
}

/* ── コンテナ ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 clamp(16px,4vw,32px); }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 clamp(16px,4vw,32px); }

/* ── ページヘッダー ── */
.page-header {
  padding: 64px 0 40px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}
.page-header h1 {
  font-size: clamp(28px,4.5vw,44px);
  font-weight: 700; color: var(--gold-light);
  letter-spacing: 0.5px; margin-bottom: 12px;
}
.page-header p { color: var(--text-muted); font-size: 16px; }

/* ── 記事カード一覧 ── */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  margin-bottom: 80px;
}
.post-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .25s, border-color .25s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.post-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-dim);
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
}
.post-card a { color: inherit; }
.post-card .thumb {
  aspect-ratio: 16/9;
  background: var(--bg3) center/cover no-repeat;
  border-bottom: 1px solid var(--border);
}
.post-card .body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.post-card .category {
  font-size: 11px; letter-spacing: 1.5px;
  color: var(--gold); text-transform: uppercase;
  margin-bottom: 10px;
}
.post-card h2 {
  font-size: 19px; line-height: 1.5;
  color: var(--text); margin-bottom: 10px;
  font-weight: 700;
}
.post-card .excerpt {
  color: var(--text-muted); font-size: 14px;
  line-height: 1.7; flex: 1;
}
.post-card .meta {
  display: flex; align-items: center; gap: 10px;
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13px; color: var(--text-dim);
}
.post-card .meta img {
  width: 28px; height: 28px; border-radius: 50%;
  object-fit: cover; border: 1px solid var(--border2);
}
.post-card .meta .name { color: var(--text-muted); }

/* ── 個別記事 ── */
article.post {
  padding: 40px 0 80px;
}
article.post .hero {
  width: 100%; aspect-ratio: 16/9; max-height: 480px;
  background: var(--bg3) center/cover no-repeat;
  border-radius: var(--radius-lg);
  margin-bottom: 28px;
  border: 1px solid var(--border);
}
article.post .category {
  font-size: 12px; letter-spacing: 2px;
  color: var(--gold); text-transform: uppercase;
  margin-bottom: 14px;
}
article.post h1 {
  font-size: clamp(26px,4vw,40px); line-height: 1.45;
  color: var(--text); font-weight: 700;
  margin-bottom: 22px; letter-spacing: 0.3px;
}
article.post .meta-bar {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 36px; padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim); font-size: 14px;
}
article.post .meta-bar img {
  width: 44px; height: 44px; border-radius: 50%;
  object-fit: cover; border: 1px solid var(--border2);
}
article.post .meta-bar .name { color: var(--text); font-weight: 500; }

article.post .body { font-size: 17px; }
article.post .body h2 {
  font-size: 26px; color: var(--gold-light);
  margin: 48px 0 18px; padding-left: 14px;
  border-left: 3px solid var(--gold);
  letter-spacing: 0.3px;
}
article.post .body h3 {
  font-size: 20px; color: var(--text);
  margin: 32px 0 12px;
  font-weight: 600;
}
article.post .body p { margin-bottom: 22px; color: var(--text); }
article.post .body strong { color: var(--gold-light); font-weight: 600; }
article.post .body ul, article.post .body ol {
  margin: 0 0 22px 24px; color: var(--text);
}
article.post .body li { margin-bottom: 10px; }
article.post .body blockquote {
  border-left: 3px solid var(--gold);
  background: var(--bg2);
  padding: 16px 22px;
  margin: 22px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-muted); font-style: italic;
}
article.post .body img {
  max-width: 100%; height: auto;
  border-radius: var(--radius);
  margin: 28px auto; display: block;
  border: 1px solid var(--border);
}
article.post .body figure {
  margin: 28px 0;
  text-align: center;
}
article.post .body figcaption {
  margin-top: 8px;
  font-size: 13px; color: var(--text-dim);
  font-style: italic;
}

/* ── 著者ボックス ── */
.author-box {
  margin-top: 56px; padding: 28px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex; gap: 22px; align-items: flex-start;
}
.author-box img {
  width: 88px; height: 88px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--border2);
  flex-shrink: 0;
}
.author-box .info h3 {
  color: var(--gold-light); font-size: 17px;
  margin-bottom: 4px;
}
.author-box .info .role {
  color: var(--text-dim); font-size: 13px;
  margin-bottom: 10px;
}
.author-box .info p { color: var(--text-muted); font-size: 14px; line-height: 1.7; }

/* ── 但し書き ── */
.disclaimer {
  margin-top: 48px;
  padding: 18px 22px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.7;
}
.disclaimer strong { color: var(--text-muted); }

/* ── 登場人物カード ── */
.character-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-bottom: 80px;
}
.character-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  transition: border-color .25s;
}
.character-card:hover { border-color: var(--gold-dim); }
.character-card img {
  width: 130px; height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border2);
  margin-bottom: 18px;
}
.character-card h3 {
  font-size: 22px; color: var(--gold-light);
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}
.character-card .age {
  color: var(--text-dim); font-size: 13px;
  margin-bottom: 14px;
}
.character-card .role {
  color: var(--gold); font-size: 13px;
  letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 16px;
}
.character-card .bio {
  color: var(--text-muted); font-size: 14px;
  line-height: 1.75; text-align: left;
}

/* ── フッター ── */
footer.blog-footer {
  margin-top: 80px;
  padding: 40px 0 32px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-dim); font-size: 13px;
}
footer.blog-footer a { color: var(--text-muted); margin: 0 12px; }
footer.blog-footer .copyright { margin-top: 14px; color: var(--text-dim); }

/* ── 会話UI(チャット風) ── */
.chat-thread {
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.chat-msg {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.chat-msg .avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid var(--border2);
  object-fit: cover;
}
.chat-msg .bubble {
  flex: 1;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 4px 14px 14px 14px;
  padding: 12px 16px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
}
.chat-msg .bubble .name {
  display: block;
  font-size: 12px;
  color: var(--gold-light);
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}
.chat-msg .bubble p { margin: 0 0 8px 0; }
.chat-msg .bubble p:last-child { margin-bottom: 0; }
.chat-msg .bubble strong { color: var(--gold-light); font-weight: 600; }
.chat-msg[data-char="kenji"]   .avatar { border-color: rgba(201,168,76,0.6); }
.chat-msg[data-char="misaki"]  .avatar { border-color: rgba(232,204,122,0.7); }
.chat-msg[data-char="johnny"]  .avatar { border-color: rgba(160,160,160,0.6); }
.chat-msg[data-char="kenji"]   .bubble { background: rgba(201,168,76,0.06); border-color: rgba(201,168,76,0.18); }
.chat-msg[data-char="misaki"]  .bubble { background: rgba(232,204,122,0.04); border-color: rgba(232,204,122,0.16); }
.chat-msg[data-char="johnny"]  .bubble { background: var(--bg3); border-color: var(--border2); }
@media (max-width: 600px) {
  .chat-msg .avatar { width: 40px; height: 40px; }
  .chat-msg .bubble { font-size: 14px; padding: 10px 14px; }
  .chat-msg { gap: 10px; }
}

/* ── 登場人物ストリップ(ブログTOP) ── */
.character-strip {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(20px, 5vw, 48px);
  margin: -16px 0 56px;
  flex-wrap: wrap;
}
.character-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 13px;
  transition: transform .2s, color .2s;
  min-width: 72px;
}
.character-chip:hover {
  transform: translateY(-3px);
  color: var(--gold-light);
}
.character-chip img {
  width: 64px; height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border2);
  transition: border-color .2s;
}
.character-chip:hover img {
  border-color: var(--gold);
}
.character-chip .role-mini {
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

/* ── レスポンシブ ── */
@media (max-width: 600px) {
  body { font-size: 16px; }
  nav.blog-nav {
    padding: 10px 14px;
    gap: 8px;
  }
  nav.blog-nav .logo { font-size: 13px; letter-spacing: 0.8px; }
  nav.blog-nav ul { gap: 4px; }
  nav.blog-nav ul a { padding: 5px 10px; font-size: 11px; }
  .author-box { flex-direction: column; text-align: center; align-items: center; }
  .page-header { padding: 40px 0 28px; margin-bottom: 32px; }
  .character-strip {
    gap: 10px;
    margin: -8px 0 36px;
    flex-wrap: nowrap;
    justify-content: space-around;
  }
  .character-chip {
    flex: 1 1 0;
    min-width: 0;
    max-width: 120px;
    font-size: 12px;
  }
  .character-chip img { width: 56px; height: 56px; }
  .character-chip .role-mini {
    font-size: 9px;
    line-height: 1.35;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 380px) {
  nav.blog-nav .logo { font-size: 12px; }
  nav.blog-nav ul a { padding: 4px 8px; font-size: 10px; }
}
