@charset "UTF-8";
/* File: odekake-footer.css
 * Version: 2026.09.14.6
 * Modified: 2026-09-14 (JST) / Author: コデコ
 * 本番style.cssのフッター・ガチャ装飾を順序を保って集約。
 */
/************************************
** 3. サイト共通：クラフト調オリーブフッター ＆ ガチャ
************************************/
/* フッター全体の背景と文字色 */
.footer {
  background-color: #2d3e33 !important; /* 深いオリーブグリーン */
  color: #f4f6f0 !important; /* サンドホワイト */
  padding: 40px 0 20px 0;
  border-top: 4px solid #f1c40f; /* アクセント of マスタードイエロー */
}

/* フッター見出し */
.footer .widget-title,
.footer h3.footer-title {
  color: #f1c40f !important;
  font-size: 1.1rem;
  border-bottom: 2px dashed #f1c40f;
  padding-bottom: 8px;
  margin-bottom: 15px;
  font-weight: bold;
}

/* リンクの色とホバー効果 */
.footer a {
  color: #f4f6f0 !important;
  transition: color 0.3s ease;
}
.footer a:hover {
  color: #81a687 !important; /* 淡いリーフグリーン */
  text-decoration: none;
}

/* 左カラム：ガチャボックス */
.footer-gacha-box {
  text-align: center;
  padding: 10px;
}
.gacha-description {
  font-size: 0.9rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* 🎲 ガチャボタン本体 */
.gacha-btn {
  display: inline-block;
  background-color: #f1c40f !important;
  color: #2d3e33 !important;
  font-weight: bold;
  font-size: 1rem;
  padding: 12px 28px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 0 #b7950b;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s !important;
}

/* 🚨 ガチャボタン：ホバー時の立体浮き上がりエフェクト */
.gacha-btn:hover {
  background-color: #f4d03f !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 0 #b7950b !important;
}

/* ガチャボタン：クリック（アクティブ）時の押し込み */
.gacha-btn:active {
  transform: translateY(4px) !important;
  box-shadow: none !important;
}
.gacha-btn:disabled {
  opacity: 0.8;
  cursor: not-allowed;
}

/* 🎰 ガチャ結果表示エリアの装飾 */
.gacha-result-wrap {
  margin-top: 20px;
  padding: 20px 15px;
  background: rgba(244, 246, 240, 0.05);
  border: 2px dashed #f1c40f;
  border-radius: 8px;
  animation: gacha-fade-in 0.4s ease-out forwards;
}

.gacha-result-lead {
  font-size: 0.8rem;
  color: #81a687;
  margin-bottom: 10px;
  font-weight: bold;
}

.gacha-result-title {
  font-size: 1.15rem;
  font-weight: bold;
  color: #f1c40f !important;
  margin-bottom: 18px;
  min-height: 2.8em;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.4;
  transition: filter 0.1s, opacity 0.1s;
}

.gacha-spinning {
  opacity: 0.5;
  filter: blur(1.5px);
}

/* 遷移ボタン（初期表示） */
.footer .gacha-result-go-btn {
  display: inline-block !important;
  background-color: #81a687 !important;
  color: #2d3e33 !important;
  font-size: 0.9rem;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  opacity: 0;
  transition: opacity 0.3s ease, background-color 0.2s, color 0.2s !important;
}

/* 遷移ボタン（ホバー時の文字色固定） */
.footer .gacha-result-go-btn:hover {
  background-color: #f1c40f !important;
  color: #2d3e33 !important;
  text-decoration: none !important;
}

@keyframes gacha-fade-in {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 右カラム：タグクラウドのポップ化 */
.footer .tagcloud a {
  display: inline-block;
  background: rgba(244, 246, 240, 0.1);
  padding: 4px 10px;
  margin: 4px;
  border-radius: 4px;
  font-size: 0.85rem !important;
  border: 1px solid rgba(244, 246, 240, 0.2);
}
.footer .tagcloud a:hover {
  background: #f1c40f;
  color: #2d3e33 !important;
}

/* フッター内の「その他（ID: 57）」を非表示にする */
.footer-widgets .cat-item-57 {
    display: none !important;
}


#footer .footer-widgets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  align-items: start;
}
#footer .footer-widgets::after { display: none; }
#footer .footer-widgets > div { width: auto; float: none; min-width: 0; padding: 0; }
#footer .footer-widgets .widget { margin: 0 0 24px; padding: 0; }
#footer .footer-gacha-box { padding: 0; }
#footer .footer-widgets .footer-title {
  box-sizing: border-box;
  margin: 0 0 18px;
  padding: 0 0 12px;
  font-size: 18px;
  line-height: 28px;
  border: 0;
  border-bottom: 2px dashed #d9bb52;
  background: none;
  color: #f1cf55 !important;
  letter-spacing: .04em;
}
#footer .widget_categories > ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
#footer .widget_categories .cat-item { margin: 0; padding: 0; }
/* 関西広域・遠出は県内6エリアの下で2列分を使用 */
#footer .widget_categories .cat-item-106 { grid-column: 1 / -1; }
#footer .widget_categories .cat-item > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #647468;
  border-radius: 10px;
  background: #374b3e;
  color: #faf6ee !important;
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
}
#footer .widget_categories .cat-item > a::after { content: '›'; color: #f1cf55; font-size: 20px; }
#footer .tagcloud { display: flex; flex-wrap: wrap; gap: 8px; }
#footer .tagcloud a {
  width: auto;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid #647468;
  border-radius: 999px;
  background: #374b3e;
  color: #faf6ee !important;
  font-size: 13px !important;
  line-height: 1.5;
  text-decoration: none;
}
#footer .tagcloud .tax-icon { display: none; }
#footer .tagcloud .tag-caption::before { content: '#'; margin-right: 5px; color: #f1cf55; }
#footer .widget_categories .cat-item > a:hover,
#footer .tagcloud a:hover {
  background: #f1cf55;
  border-color: #f1cf55;
  color: #25372b !important;
}
#footer .widget_categories .cat-item > a:hover::after,
#footer .tagcloud a:hover .tag-caption::before { color: #25372b; }
#footer .search-box { margin: 0; }
#footer .search-edit {
  min-height: 48px;
  border: 1px solid #d2c8b8;
  border-radius: 12px;
  background: #faf6ee;
  color: #25372b;
  padding-left: 14px;
}
#footer .search-submit { color: #48624f; }
#footer .footer-bottom {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #647468;
}
#footer .menu-footer { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
#footer .menu-footer li { border: 0; padding: 0; margin: 0; }
#footer .menu-footer li a { display: block; padding: 6px 10px; border-radius: 6px; font-size: 12px; }
#footer .menu-footer li a:hover { background: #374b3e; color: #f1cf55 !important; }
#footer a:focus-visible, #footer button:focus-visible, #footer input:focus-visible {
  outline: 3px solid #f1cf55;
  outline-offset: 3px;
}
/* 未リライト記事のカテゴリーは引き続き非表示 */
#footer .footer-widgets .cat-item-57 { display: none; }
@media (max-width: 900px) {
  #footer #footer-in { padding-left: 20px; padding-right: 20px; }
  #footer .footer-widgets { grid-template-columns: 1fr; gap: 12px; }
  #footer .footer-widgets .footer-title { text-align: left; }
  #footer .menu-footer { justify-content: center; }
}

/* 抽選前から結果欄を確保。既存JSのdisplay切替をvisibilityへ読み替える。 */
#footer #gacha-result-container {
  display: block !important;
  animation: none;
}
#footer #gacha-result-container[style*="display: none"],
#footer #gacha-result-container[style*="display:none"] {
  visibility: hidden;
  pointer-events: none;
}
#footer #gacha-result-title {
  display: block;
  box-sizing: border-box;
  height: 6.5em; /* 行高1.4 × 6行。長さに関係なく抽選中も一定 */
  min-height: 6.5em;
  overflow-y: auto;
  overflow-wrap: anywhere;
  scrollbar-gutter: stable;
}