/* ===========================================
   紫を基調とした和風高級デザイン - Yagasuri Style
   =========================================== */

/* 基本設定 */
:root {
  --primary-purple: #2f1b3d;    /* 深い葡萄色 */
  --secondary-purple: #5b3a5d;  /* 伏紫 */
  --light-purple: #f6efe2;      /* 和紙の生成り */
  --accent-gold: #c49a3d;       /* 金茶 */
  --accent-vermillion: #d75c3a; /* 朱色 */
  --background-white: #fffdf8;  /* 柔らかな白 */
  --background-light: #fcf4e7;  /* 生成りの薄色 */
  --text-dark: #2d2018;         /* 濃茶 */
  --text-light: #faf6ed;        /* 明るい生成り */
  --border-light: #e6dcc7;      /* 和紙の縁色 */
  --footer-bg: #24162f;         /* 藍黒 */
  --text-body: #3a2b24;         /* 焦げ茶 */
  --shadow-elegant: rgba(47, 27, 61, 0.18);
  --shadow-soft: rgba(0, 0, 0, 0.08);
}

/* 全体のフォント設定 - 和風serif */
body {
  font-family: 'Noto Serif JP', '游明朝', 'Yu Mincho', 'Hiragino Mincho ProN', serif;
  background: var(--background-white);
  min-height: 100vh;
  color: var(--text-body);
  line-height: 1.8;
  scroll-behavior: smooth;
}

/* ヘッダ */
.yagasuri-bar {
	display: block;
	width: 100%;
	height: 32px; /* 画像の元の高さに合わせる */
	min-height: 32px;
	background-image: url('/assets/images/yagasuri2.png');
	background-repeat: repeat-x;
	background-size: auto 68px; /* 画像の元の高さで表示 */
	background-position: left top;
	overflow: hidden;
	line-height: 0; /* インライン要素の余白を削除 */
	font-size: 0; /* インライン要素の余白を削除 */
}

/* ヘッダー - 高級感のあるナビゲーションバー */
.navbar {
  background: linear-gradient(90deg, rgba(47, 27, 61, 0.95) 0%, rgba(58, 35, 63, 0.92) 50%, rgba(47, 27, 61, 0.95) 100%) !important;
  box-shadow: 0 6px 24px var(--shadow-elegant);
  border-bottom: 2px solid var(--accent-gold);
  backdrop-filter: blur(14px);
  position: relative;
  z-index: 1030;
}

.navbar-brand {
  font-family: 'Noto Serif JP', serif;
  font-weight: 600;
  font-size: 1.8rem;
  color: var(--accent-gold) !important;
  letter-spacing: 0.08em;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.35);
}

.navbar-brand:hover {
  color: var(--text-light) !important;
  transform: scale(1.03);
  transition: all 0.3s ease;
}

.nav-link {
  color: var(--text-light) !important;
  font-weight: 500;
  padding: 0.75rem 1rem;
  margin: 0 0.25rem;
  border-radius: 8px;
  letter-spacing: 0.04em;
  transition: all 0.3s ease;
}

.nav-link:hover {
  background-color: rgba(196, 154, 61, 0.2);
  color: var(--accent-gold) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow-soft);
}

/* ドロップダウンメニュー */
.dropdown-menu {
  border: 1px solid rgba(196, 154, 61, 0.45);
  border-radius: 8px;
  box-shadow: 0 8px 24px var(--shadow-elegant);
  z-index: 1040;
  backdrop-filter: blur(6px);
}

.dropdown-item {
  color: var(--text-body) !important;
  font-weight: 500;
  transition: all 0.3s ease;
}

.dropdown-item:hover,
.dropdown-item.active {
  background-color: rgba(215, 92, 58, 0.08) !important;
  color: var(--accent-vermillion) !important;
}

.dropdown-item i {
  margin-right: 0.5rem;
  color: var(--accent-gold);
}

/* パンくずリスト */
.bg-light {
  background-color: var(--background-white) !important;
}

.breadcrumb {
  background-color: transparent;
  margin-bottom: 0;
}

.breadcrumb-item a {
  color: var(--text-body);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
  color: var(--accent-gold);
}

.breadcrumb-item.active {
  color: var(--text-body);
  opacity: 0.7;
}

/* メインコンテンツエリア */
main {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.container, .container-fluid {
  max-width: 1200px;
}

/* ジャンボトロン - 紫を基調とした高級感 */
.jumbotron {
  background: linear-gradient(135deg, rgba(47, 27, 61, 0.88) 0%, rgba(58, 35, 63, 0.92) 50%, rgba(47, 27, 61, 0.88) 100%);
  color: var(--text-light) !important;
  border: 1px solid var(--accent-gold);
  border-radius: 16px;
  box-shadow: 0 8px 32px var(--shadow-elegant);
  backdrop-filter: blur(10px);
  padding: 1rem !important;
  position: relative;
  overflow: hidden;
}

.jumbotron .display-4 {
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  font-size: 3.5rem;
  color: #000000 !important;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
  margin-bottom: 1.5rem;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 0.5rem 0.5rem;
  border-radius: 8px;
  display: inline-block;
  letter-spacing: 0.08em;
}

.jumbotron .lead {
  font-size: 1.25rem;
  font-weight: 700;
  opacity: 1;
  color: var(--text-light) !important;
  background-color: transparent;
  padding: 0.5rem 0.5rem;
  border-radius: 8px;
  display: inline-block;
  letter-spacing: 0.03em;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.badge {
  background-color: rgba(196, 154, 61, 0.18) !important;
  color: var(--primary-purple) !important;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(47, 27, 61, 0.1);
  border: 1px solid rgba(196, 154, 61, 0.25);
}

/* カードデザイン - 和紙のような質感 */
.card {
  background: rgb(255, 255, 255);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  box-shadow: 0 8px 30px var(--shadow-soft);
  transition: all 0.4s ease;
  overflow: hidden;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(196, 154, 61, 0.8) 0%, rgba(215, 92, 58, 0.65) 40%, rgba(196, 154, 61, 0.8) 100%);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(47, 27, 61, 0.18);
  border-color: rgba(196, 154, 61, 0.6);
}

.card-header {
  background: linear-gradient(120deg, rgba(47, 27, 61, 0.95) 0%, rgba(65, 36, 64, 0.9) 60%, rgba(47, 27, 61, 0.95) 100%);
  border-bottom: 1px solid rgba(196, 154, 61, 0.5);
  padding: 1.25rem 1.5rem;
  opacity: 0.97;
}

.card-header .card-title {
  color: var(--text-light) !important;
}

.card-header h3,
.card-header h6 {
  color: var(--text-light) !important;
}

.card-header .bi {
  color: var(--text-light) !important;
  opacity: 1;
}

.card-title {
  color: var(--text-body);
  font-family: 'Noto Serif JP', serif;
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
}

.card-body {
  padding: 2rem;
  background: rgb(255, 255, 255);
}

.card-text {
  color: var(--text-body);
  opacity: 0.9;
  line-height: 1.75;
}

/* ボタンスタイル */
.btn {
  border-radius: 999px;
  font-weight: 500;
  padding: 0.75rem 1.7rem;
  transition: all 0.3s ease;
  font-family: 'Noto Serif JP', serif;
  border: none;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.05em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-gold) 0%, #b8842d 100%);
  color: var(--text-dark);
  box-shadow: 0 6px 18px rgba(47, 27, 61, 0.18);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #d7aa42 0%, var(--accent-gold) 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(47, 27, 61, 0.24);
  color: var(--text-dark);
}

.btn-outline-primary {
  border: 2px solid var(--accent-gold);
  color: var(--accent-gold);
  background: rgba(196, 154, 61, 0.12);
}

.btn-outline-primary:hover {
  background: var(--accent-gold);
  color: var(--text-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(47, 27, 61, 0.18);
}

.btn-outline-secondary {
  border: 2px solid rgba(47, 27, 61, 0.5);
  color: var(--primary-purple);
  background: rgba(47, 27, 61, 0.08);
}

.btn-outline-secondary:hover {
  background: rgba(47, 27, 61, 0.9);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--shadow-soft);
}

.btn-outline-success {
  border: 2px solid rgba(215, 92, 58, 0.4);
  color: var(--accent-vermillion);
  background: rgba(215, 92, 58, 0.1);
}

.btn-outline-success:hover {
  background: rgba(215, 92, 58, 0.85);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(47, 27, 61, 0.18);
}

.btn-outline-warning {
  border: 2px solid rgba(196, 154, 61, 0.6);
  color: var(--accent-gold);
  background: rgba(196, 154, 61, 0.12);
}

.btn-outline-warning:hover {
  background: rgba(196, 154, 61, 0.9);
  color: var(--text-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(47, 27, 61, 0.18);
}

/* ページ先頭へ戻るボタン */
.btn-scroll-top {
  background-color: var(--secondary-purple);
  color: var(--text-light) !important;
  border: 2px solid var(--accent-gold);
  box-shadow: 0 2px 8px rgba(47, 27, 61, 0.15);
  transition: all 0.3s ease;
}

.btn-scroll-top:hover {
  background-color: var(--accent-gold);
  color: var(--text-dark) !important;
  border-color: var(--secondary-purple);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(47, 27, 61, 0.2);
}

/* リストグループ */
.list-group-item {
  background: rgba(253, 248, 240, 0.65);
  border: 1px solid rgba(230, 220, 199, 0.8);
  color: var(--text-body);
  padding: 1rem 1.5rem;
  transition: all 0.3s ease;
}

.list-group-item:hover {
  background: rgba(215, 92, 58, 0.08);
  transform: translateX(6px);
  border-color: rgba(196, 154, 61, 0.45);
}

/* 更新情報のアイテム縦揃え */
.list-group-item.d-flex {
  align-items: center;
}

.list-group-item .badge {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
}

.list-group-item h6 {
  margin: 0;
}

/* フッター */
footer {
  background: linear-gradient(180deg, var(--footer-bg) 0%, rgba(24, 16, 32, 0.95) 100%) !important;
  color: var(--text-light) !important;
  border-top: 3px solid var(--accent-gold);
  margin-top: 4rem;
  padding: 3rem 0 2rem;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.14);
}

footer p {
  margin: 0;
  font-size: 0.95rem;
}

/* アイコンスタイル */
.bi {
  opacity: 0.8;
  transition: all 0.3s ease;
}

.nav-link:hover .bi,
.card-title .bi {
  opacity: 1;
  transform: scale(1.1);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .jumbotron .display-4 {
    font-size: 2.5rem;
  }

  .navbar-brand {
    font-size: 1.5rem;
  }

  .card-body {
    padding: 1.5rem;
  }

  /* パンくずリストのモバイル対応 */
  .breadcrumb {
    flex-wrap: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .breadcrumb-item {
    flex-shrink: 0;
  }

  .breadcrumb-item:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
  }
}

/* アニメーション効果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card, .jumbotron {
  animation: fadeInUp 0.8s ease-out;
}

/* スクロールバー */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--background-light);
}

::-webkit-scrollbar-thumb {
  background: var(--secondary-purple);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-purple);
}

/* ===========================================
   紫系ユーティリティクラス
   =========================================== */

.bg-purple-primary {
  background-color: var(--primary-purple) !important;
  color: var(--text-light) !important;
}

.bg-purple-secondary {
  background-color: var(--secondary-purple) !important;
  color: var(--text-light) !important;
}

.bg-purple-light {
  background-color: var(--light-purple) !important;
  color: var(--primary-purple) !important;
}

.text-purple-primary {
  color: var(--primary-purple) !important;
}

.text-purple-secondary {
  color: var(--secondary-purple) !important;
}

.border-purple {
  border-color: var(--secondary-purple) !important;
}

.border-purple-light {
  border-color: var(--light-purple) !important;
}

/* 紫系カードヘッダー */
.card-header.bg-purple-primary,
.card-header.bg-purple-secondary,
.card-header.bg-purple-light {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.card-header.bg-purple-primary .card-title,
.card-header.bg-purple-secondary .card-title {
  color: var(--text-light) !important;
}

.card-header.bg-purple-light .card-title {
  color: var(--primary-purple) !important;
}
/* カードヘッダー内のテキスト要素を明確にする */
.card-header.bg-purple-primary h3,
.card-header.bg-purple-primary h6,
.card-header.bg-purple-secondary h3,
.card-header.bg-purple-secondary h6 {
  color: var(--text-light) !important;
}

.card-header.bg-purple-light h3,
.card-header.bg-purple-light h6 {
  color: var(--primary-purple) !important;
}

.card-header.bg-purple-primary .bi,
.card-header.bg-purple-secondary .bi {
  color: var(--text-light) !important;
  opacity: 1;
}

.card-header.bg-purple-light .bi {
  color: var(--primary-purple) !important;
  opacity: 1;
}

/* ===========================================
   記事リンクスタイル
   =========================================== */

.article-link {
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
  padding: 1rem 1.25rem;
}

.article-link:hover {
  border-left-color: var(--secondary-purple);
  background-color: var(--background-light);
  transform: translateX(5px);
}

.article-icon {
  min-width: 40px;
  text-align: center;
}

/* ===========================================
   クリアゲームページ - フィルター用スタイル
   =========================================== */

/* クリックのみのドロップダウンメニューを白系に */
.click-only-dropdown .dropdown-menu {
  background: #ffffff !important;
  border: 1px solid #dee2e6;
  color: #212529;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.click-only-dropdown .dropdown-item {
  color: #212529 !important;
}

.click-only-dropdown .dropdown-item:hover,
.click-only-dropdown .dropdown-item.active {
  background-color: #e9ecef !important;
  color: #212529 !important;
}

/* フィルターボタンを紫系に統一 */
.click-only-dropdown .dropdown-toggle {
  border-color: var(--secondary-purple) !important;
  color: var(--secondary-purple) !important;
}

.click-only-dropdown .dropdown-toggle:hover {
  background: var(--secondary-purple) !important;
  color: white !important;
}

.click-only-dropdown .dropdown-toggle:active,
.click-only-dropdown .dropdown-toggle.active,
.click-only-dropdown.show .dropdown-toggle {
  background: var(--secondary-purple) !important;
  border-color: var(--secondary-purple) !important;
  color: white !important;
  box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125), 0 0 0 0.2rem rgba(123, 31, 162, 0.25) !important;
}

.click-only-dropdown .dropdown-toggle:focus {
  box-shadow: 0 0 0 0.2rem rgba(123, 31, 162, 0.25) !important;
}

/* フィルターボタン紫系カスタムクラス */
.filter-btn-purple {
  border-color: var(--secondary-purple) !important;
  color: var(--secondary-purple) !important;
  background-color: transparent !important;
}

.filter-btn-purple:hover {
  background-color: var(--secondary-purple) !important;
  color: white !important;
  border-color: var(--secondary-purple) !important;
}

.filter-btn-purple:active,
.filter-btn-purple.active {
  background-color: var(--secondary-purple) !important;
  color: white !important;
  border-color: var(--secondary-purple) !important;
  box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125) !important;
}

.filter-btn-purple:focus {
  box-shadow: 0 0 0 0.2rem rgba(123, 31, 162, 0.25) !important;
}

/* ===========================================
   リンクスタイル - 和風高級デザインに合わせた色調
   =========================================== */

a {
  color: var(--accent-gold);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-vermillion);
  text-decoration: none;
}

a:visited {
  color: var(--secondary-purple);
}

a:active {
  color: var(--primary-purple);
}

/* ===========================================
   ページネーションスタイル - 和風高級デザインに合わせた色調
   =========================================== */

.page-link {
  color: var(--secondary-purple) !important;
  background-color: var(--background-white) !important;
  border-color: var(--border-light) !important;
  /* border-radius: 8px !important; */
  margin: 0 2px;
  font-weight: 500;
  transition: all 0.3s ease;
  font-family: 'Noto Serif JP', serif;
  padding: 0.5rem 0.75rem;
  text-decoration: none;
}

.page-link:hover {
  color: var(--text-light) !important;
  background-color: var(--accent-vermillion) !important;
  border-color: var(--accent-vermillion) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(47, 27, 61, 0.18);
}

.page-item.active .page-link {
  background-color: var(--accent-gold) !important;
  border-color: var(--accent-gold) !important;
  color: var(--text-dark) !important;
  box-shadow: 0 4px 12px rgba(196, 154, 61, 0.3);
}

.page-item.disabled .page-link {
  color: rgba(58, 43, 36, 0.4) !important;
  background-color: var(--background-light) !important;
  border-color: var(--border-light) !important;
  cursor: not-allowed;
}

/* ===========================================
   Amazon リンク画像スタイル
   =========================================== */

.game-image-link {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.amazon-icon-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.amazon-icon-overlay i {
  font-size: 1.5rem;
  color: #FF9900;
  opacity: 1;
}

.game-image-link:hover .amazon-icon-overlay {
  opacity: 1;
}

/* ===========================================
   ブログポストアイテム
   =========================================== */

.blog-post-item {
  background: rgba(253, 248, 240, 0.5);
  border: 1px solid rgba(230, 220, 199, 0.6);
  transition: all 0.3s ease;
}

.blog-post-item:hover {
  background: rgba(215, 92, 58, 0.06);
  border-color: rgba(196, 154, 61, 0.5);
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(47, 27, 61, 0.08);
}

.blog-post-item img {
  border: 1px solid rgba(230, 220, 199, 0.8);
  transition: all 0.3s ease;
}

.blog-post-item:hover img {
  border-color: rgba(196, 154, 61, 0.6);
}

.blog-post-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s ease;
}

.blog-post-item:hover .blog-post-title {
  color: var(--accent-gold) !important;
}