/*
Theme Name: haiboku-gambler
Theme URI: https://gotanda-gambler.com/
Author: 敗北のギャンブラー
Description: 五反田イメクラ風俗「敗北のギャンブラー」専用テーマ（haiboku 親テーマ + KRC Cast Manager 対応）
Version: 1.0.0
Template: haiboku
Text Domain: haiboku-gambler
*/

/* ==========================================================================
   GAMBLER THEME - カジノラグジュアリーデザイン
   ブラック × ゴールド × ワインレッド
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700;900&family=Cinzel:wght@400;700;900&display=swap');

/* ==========================================================================
   CSS Design Tokens（ギャンブラー固有テーマカラー上書き）
   ========================================================================== */
:root {
  /* カジノカラーパレット */
  --gambler-gold:        #c9a84c;
  --gambler-gold-light:  #f0d080;
  --gambler-gold-dark:   #8b6914;
  --gambler-red:         #8b0000;
  --gambler-red-bright:  #cc1a2b;
  --gambler-black:       #0a0a0a;
  --gambler-dark:        #111111;
  --gambler-card-bg:     #161616;
  --gambler-border:      rgba(201, 168, 76, 0.4);

  /* 親テーマ変数オーバーライド */
  --site-bg:             var(--gambler-black);
  --site-text:           #f0e6cc;
  --site-text-muted:     rgba(240, 230, 204, 0.65);
  --accent-color:        var(--gambler-gold);
  --border-color:        var(--gambler-border);
  --card-bg:             var(--gambler-card-bg);

  /* グラデーション */
  --gradient-gold:       linear-gradient(135deg, #c9a84c 0%, #f0d080 50%, #c9a84c 100%);
  --gradient-dark-gold:  linear-gradient(180deg, #1a1208 0%, #0a0a0a 100%);
  --gradient-header:     linear-gradient(180deg, rgba(10,10,10,0.98) 0%, rgba(20,10,0,0.95) 100%);

  /* シャドウ */
  --shadow-gold:         0 0 20px rgba(201, 168, 76, 0.3);
  --shadow-card:         0 4px 24px rgba(0, 0, 0, 0.8);
}

/* ==========================================================================
   ベース スタイル上書き
   ========================================================================== */
body {
  font-family: 'Noto Sans JP', sans-serif;
  background-color: var(--gambler-black);
  color: var(--site-text);
  background-image:
    radial-gradient(ellipse at top, rgba(139,0,0,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at bottom, rgba(201,168,76,0.04) 0%, transparent 60%);
}

/* カジノパターン背景オーバーレイ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a84c' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

/* ==========================================================================
   見出し・タイポグラフィ
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Noto Sans JP', sans-serif;
  letter-spacing: 0.05em;
}

.in-page,
h2.in-page {
  color: var(--gambler-gold-light);
  border-left: 4px solid var(--gambler-gold);
  padding: 8px 0 8px 16px;
  margin: 32px 0 16px;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  text-shadow: 0 0 10px rgba(201, 168, 76, 0.3);
}

/* ==========================================================================
   ヘッダー (PC用)
   ========================================================================== */
#main-header {
  background: var(--gradient-header);
  border-bottom: 1px solid var(--gambler-border);
  box-shadow: 0 2px 20px rgba(0,0,0,0.8), inset 0 -1px 0 var(--gambler-gold-dark);
}

#header-logo img {
  max-height: 70px;
  width: auto;
}

/* ==========================================================================
   サイドバー・ナビゲーション
   ========================================================================== */
#side-menu {
  background-color: var(--gambler-card-bg);
  border: 1px solid var(--gambler-border);
  border-radius: 8px;
  overflow: hidden;
}

#side-menu li {
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
  list-style: none;
}

#side-menu li:last-child {
  border-bottom: none;
}

#side-menu li a {
  display: block;
  padding: 12px 16px;
  color: var(--site-text);
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s, padding-left 0.2s;
}

#side-menu li a:hover {
  background: rgba(201, 168, 76, 0.12);
  color: var(--gambler-gold-light);
  padding-left: 22px;
  opacity: 1;
}

/* ==========================================================================
   ガールズカード（キャスト一覧）
   ========================================================================== */
.girls-card {
  background: var(--gambler-card-bg);
  border: 1px solid var(--gambler-border);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: var(--shadow-card);
}

.girls-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold), var(--shadow-card);
}

.girls-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.girls-card ul li:first-child img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.girls-card ul li:nth-child(2) {
  font-weight: 700;
  color: var(--gambler-gold-light);
  font-size: 1rem;
  padding: 8px 10px 2px;
  letter-spacing: 0.08em;
}

.girls-card ul li:nth-child(3) {
  font-size: 0.75rem;
  color: var(--site-text-muted);
  padding: 2px 10px 10px;
}

/* ランキングバッジ */
#rank-1 { border-top: 3px solid #ffd700; }
#rank-2 { border-top: 3px solid #c0c0c0; }
#rank-3 { border-top: 3px solid #cd7f32; }

/* ==========================================================================
   スケジュール
   ========================================================================== */
.cast-schedule-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.cast-schedule-item {
  flex: 1;
  min-width: 80px;
  background: var(--gambler-card-bg);
  border: 1px solid var(--gambler-border);
  border-radius: 6px;
  overflow: hidden;
  text-align: center;
  font-size: 0.75rem;
}

.cast-schedule-date {
  background: rgba(201, 168, 76, 0.15);
  color: var(--gambler-gold-light);
  padding: 4px;
  font-weight: 700;
  font-size: 0.7rem;
  border-bottom: 1px solid var(--gambler-border);
}

.cast-schedule-time {
  padding: 6px 4px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2px;
}

.full-booked {
  color: var(--gambler-red-bright);
  font-weight: 700;
  font-size: 0.7rem;
}

.inquiry {
  color: var(--gambler-gold);
  font-weight: 700;
  font-size: 0.7rem;
}

/* ==========================================================================
   ブログサイドリスト
   ========================================================================== */
#blog-sidelist {
  background: var(--gambler-card-bg);
  border: 1px solid var(--gambler-border);
  border-radius: 8px;
  padding: 16px;
  margin-top: 20px;
}

#blog-sidelist h3 {
  color: var(--gambler-gold-light);
  font-size: 0.95rem;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gambler-border);
}

.top-bloglist {
  padding: 10px 0;
}

.top-bloglist a {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 10px;
  align-items: center;
  color: var(--site-text);
  transition: color 0.2s;
}

.top-bloglist a:hover {
  color: var(--gambler-gold-light);
  opacity: 1;
}

.top-bloglist img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
}

.top-bloglist h4 {
  font-size: 0.8rem;
  margin: 0;
  line-height: 1.4;
}

.top-bloglist hr {
  border-color: rgba(201, 168, 76, 0.15);
  margin: 0;
}

/* ==========================================================================
   フッター
   ========================================================================== */
footer,
.site-footer {
  background: linear-gradient(180deg, #0f0f0f 0%, #050505 100%);
  border-top: 1px solid var(--gambler-border);
  color: var(--site-text-muted);
}

#footer-area {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 32px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

#footer_logo img {
  max-width: 140px;
  height: auto;
  filter: brightness(0.9);
}

#footer-right {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85rem;
}

#footer-right span {
  display: block;
}

#footer-right a {
  color: var(--gambler-gold);
  text-decoration: none;
}

footer p {
  text-align: center;
  font-size: 0.75rem;
  color: var(--site-text-muted);
  padding: 12px 0 20px;
  margin: 0;
  border-top: 1px solid rgba(201,168,76,0.1);
}

/* ==========================================================================
   スマホ用フッターナビ (#sp-menu)
   ========================================================================== */
#sp-menu {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(10,10,10,0.97);
  border-top: 1px solid var(--gambler-border);
  backdrop-filter: blur(8px);
}

.footer-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-menu li {
  flex: 1;
  text-align: center;
}

.footer-menu li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  font-size: 0.65rem;
  color: var(--site-text-muted);
  transition: color 0.2s;
  gap: 2px;
}

.footer-menu li a:hover,
.footer-menu li a:active {
  color: var(--gambler-gold-light);
  opacity: 1;
}

.footer-menu li a span {
  font-size: 1.2rem;
}

/* ==========================================================================
   モーダル（他のページ）
   ========================================================================== */
.modal-window {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(4px);
}

.modal-window:target {
  display: flex;
}

.modal-inner {
  background: var(--gambler-dark);
  border: 1px solid var(--gambler-border);
  border-radius: 12px;
  padding: 32px 24px;
  min-width: 260px;
  max-width: 90vw;
  box-shadow: var(--shadow-gold);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 24px;
  font-size: 1.5rem;
  color: var(--site-text-muted);
  line-height: 1;
}

.modal-inner ul.mod {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.modal-inner ul.mod li a {
  display: block;
  padding: 12px 16px;
  background: rgba(201,168,76,0.06);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 6px;
  color: var(--site-text);
  font-size: 0.95rem;
  transition: background 0.2s, color 0.2s;
}

.modal-inner ul.mod li a:hover {
  background: rgba(201,168,76,0.18);
  color: var(--gambler-gold-light);
  opacity: 1;
}

/* ==========================================================================
   ニュース・イベントセクション
   ========================================================================== */
.top-news {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.news-img img {
  width: 150px;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--gambler-border);
}

/* ==========================================================================
   レスポンシブ
   ========================================================================== */
@media (min-width: 769px) {
  .sp { display: none !important; }
}

@media (max-width: 768px) {
  .pc { display: none !important; }

  body {
    padding-bottom: 60px;
  }

  #footer-area {
    flex-direction: column;
    text-align: center;
    padding: 24px 16px;
  }

  .top-news {
    flex-direction: column;
  }

  .news-img img {
    width: 100%;
  }
}
