@charset "UTF-8";
/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template: cocoon-master
Version: 1.1.7
*/

/*******************************************************************************************
** ガチャシステム - 共通スタイル
*******************************************************************************************/

/* メインコンテナ */

.gacha-container {
  position: relative;
  max-width: 650px;
  margin: 50px auto;
  padding: 50px 25px 35px;
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* ヘッダー（ポイント表示・リセットボタン） */

.gacha-points-wrapper {
  position: absolute;
  top: 10px;
  right: 25px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
  height: 40px;
}

.gacha-points-badge {
  background-color: #02b340;
  color: #fff;
  padding: 6px 12px;
  min-height: 36px;
  min-width: 130px;
  width: 130px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(152, 217, 142, 0.4);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  will-change: auto;
  transform: translateZ(0);
  line-height: 1;
  overflow: hidden;
}

.gacha-points-badge[data-large="true"] {
  width: 150px;
  font-size: 16px;
}

.gacha-pt-text,
[class*="-pt-text"] {
  font-size: 12px;
  margin-left: 2px;
  display: inline-block;
  vertical-align: baseline;
}

.gacha-reset-btn {
  font-size: 14px;
  font-weight: bold;
  padding: 8px 16px;
  min-width: 120px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  background-color: #fff;
  color: #02b340;
  border: none;
  position: relative;
  top: 0;
  -webkit-tap-highlight-color: transparent;
  /* 立体効果 */
  box-shadow: 0 4px 0 #d0d0d0, 0 5px 10px rgba(0, 0, 0, 0.2);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.gacha-reset-btn:hover {
  background-color: #f8fff8;
  box-shadow: 0 4px 0 #d0d0d0, 0 6px 14px rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
}

.gacha-reset-btn:active {
  top: 2px;
  box-shadow: 0 2px 0 #d0d0d0, 0 3px 6px rgba(0, 0, 0, 0.15);
}

.gacha-reset-btn:focus {
  outline: 3px solid rgba(2, 179, 64, 0.5);
  outline-offset: 2px;
}

/* 賞品表示エリア */

.gacha-prize-text {
  font-size: 36px;
  font-weight: 900;
  color: #ff4500;
  text-align: center;
  margin: 25px 0 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.gacha-prize-images {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 30px auto 40px;
}

.gacha-prize-images .gacha-prize-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.gacha-prize-item {
  position: relative;
  display: inline-block;
}

.gacha-prize-item img {
  display: block;
  background-color: #ffffff;
  padding: 8px;
  border-radius: 8px;
  max-width: 260px;
  min-width: 160px;
  height: auto;
  object-fit: contain;
}

.gacha-prize-item::after {
  content: "×" attr(data-count);
  position: absolute;
  bottom: 16px;
  right: 16px;
  background-color: #02b340;
  color: #fff;
  font-size: 15px;
  font-weight: bold;
  padding: 5px 12px;
  border-radius: 6px;
  border: 2px solid #02b340;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  z-index: 5;
  
  letter-spacing: 0.05em;
}

/* コスト・残口数表示エリア */

.gacha-cost-wrapper {
  text-align: center;
  margin: 25px 0;
  padding: 20px;
  background: #02b340;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(152, 217, 142, 0.3);
}

.gacha-cost-text {
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.4;
  display: block;
}

.gacha-cost-amount {
  font-size: 32px;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  display: inline-block;
  min-width: 60px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.gacha-remaining-text {
  font-size: 18px;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.4;
  display: block;
}

.gacha-remaining,
.gacha-total {
  font-weight: bold;
  font-size: 32px;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  display: inline-block;
  min-width: 50px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.gacha-progress-bar {
  width: 100%;
  height: 20px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.gacha-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #33cc66, #28a650);
  border-radius: 10px;
  transition: width 0.3s;
}

/* ボタン類 */

.gacha-button-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin: 15px 0;
}

/* メインガチャボタン */
.gacha-main-button {
  font-size: 26px;
  font-weight: 900;
  padding: 16px 40px;
  min-height: 60px;
  min-width: 240px;
  border-radius: 12px;
  background-color: #02b340;
  color: white;
  border: none;
  box-shadow: 0 6px 0 #018a30, 0 8px 15px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all 0.2s;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3), 0 0 10px rgba(255, 255, 255, 0.2);
  letter-spacing: 0.05em;
  position: relative;
  top: 0;
  -webkit-tap-highlight-color: transparent;
}

.gacha-main-button:hover:enabled {
  background-color: #02b340;
  box-shadow: 0 6px 0 #018a30, 0 10px 20px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.gacha-main-button:active:enabled {
  top: 4px;
  box-shadow: 0 2px 0 #018a30, 0 4px 8px rgba(0, 0, 0, 0.2);
}

.gacha-main-button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  box-shadow: 0 4px 0 #999, 0 6px 10px rgba(0, 0, 0, 0.2);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* 変換ボタン */
.gacha-convert-button {
  font-size: 26px;
  font-weight: 900;
  padding: 16px 40px;
  min-height: 60px;
  min-width: 240px;
  border-radius: 12px;
  background-color: #02b340;
  color: white;
  border: none;
  box-shadow: 0 6px 0 #018a30, 0 8px 15px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all 0.2s;
  display: block;
  margin: 14px auto 30px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3), 0 0 10px rgba(255, 255, 255, 0.2);
  letter-spacing: 0.05em;
  position: relative;
  top: 0;
  -webkit-tap-highlight-color: transparent;
}

.gacha-convert-button:hover:enabled {
  background-color: #02b340;
  box-shadow: 0 6px 0 #018a30, 0 10px 20px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.gacha-convert-button:active:enabled {
  top: 4px;
  box-shadow: 0 2px 0 #018a30, 0 4px 8px rgba(0, 0, 0, 0.2);
}

.gacha-convert-button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  box-shadow: 0 4px 0 #999, 0 6px 10px rgba(0, 0, 0, 0.2);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  transform: none;
}

/* リプレイボタン */
.gacha-replay-button {
  font-size: 26px;
  font-weight: 900;
  padding: 16px 40px;
  min-height: 60px;
  min-width: 240px;
  border-radius: 12px;
  background-color: #ff69b4;
  color: white;
  border: none;
  box-shadow: 0 6px 0 #d14a8a, 0 8px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.2s;
  cursor: pointer;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3), 0 0 10px rgba(255, 255, 255, 0.2);
  letter-spacing: 0.05em;
  position: relative;
  top: 0;
  -webkit-tap-highlight-color: transparent;
}

.gacha-replay-button:hover {
  background-color: #ff69b4;
  box-shadow: 0 6px 0 #d14a8a, 0 10px 20px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.gacha-replay-button:active {
  top: 4px;
  box-shadow: 0 2px 0 #d14a8a, 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ガチャ結果表示エリア */

.gacha-result {
  margin-top: 30px;
}

.gacha-select-all-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  padding: 0 30px;
}

.gacha-select-all-container input[type="checkbox"] {
  width: 24px;
  height: 24px;
  appearance: none;
  background-color: #fff;
  border: 2px solid #02b340;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.gacha-select-all-container input[type="checkbox"]:hover {
  border-color: #02b340;
  box-shadow: 0 0 8px rgba(152, 217, 142, 0.3);
}

.gacha-select-all-container input[type="checkbox"]:checked {
  background-color: #02b340;
  border-color: #02b340;
}

.gacha-select-all-container input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: solid white;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.gacha-select-all-container label {
  font-size: 26px;
  font-weight: bold;
  color: #000;
  cursor: pointer;
  margin: 0;
  -webkit-tap-highlight-color: transparent;
}

/* カード表示 */

.gacha-card {
  max-width: 540px;
  padding: 30px;
  margin: 25px auto;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.35);
  border-radius: 16px;
  background: white;
  transition: all 0.3s;
}

.gacha-card:hover {
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.45);
  transform: translateY(-5px);
}

.gacha-card-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 8px;
}

.gacha-card-checkbox {
  width: 24px;
  height: 24px;
  appearance: none;
  background-color: #fff;
  border: 2px solid #02b340;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.gacha-card-checkbox:hover {
  border-color: #02b340;
  box-shadow: 0 0 8px rgba(152, 217, 142, 0.3);
}

.gacha-card-checkbox:checked {
  background-color: #02b340;
  border-color: #02b340;
}

.gacha-card-checkbox:checked::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: solid white;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.gacha-card-name {
  font-size: 26px;
  font-weight: bold;
  color: #000;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 480px;
  -webkit-tap-highlight-color: transparent;
}

.gacha-card-points {
  
  font-size: 40px;
  font-weight: 900;
  color: #ff4500;
  text-align: center;
  margin: 12px 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.gacha-card img {
  width: 100%;
  max-width: 480px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  background-color: #ffffff;
  padding: 8px;
}

/* 交換レート表示 */

.gacha-exchange-rate {
  text-align: center;
  font-size: 18px;
  margin: 15px 0;
  padding: 12px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 2px solid #f59e0b;
  border-radius: 8px;
  color: #92400e;
  font-weight: bold;
}

/* モーダル */

.gacha-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  overflow-y: auto; /* スクロール可能に */
}

/* モバイルでのモーダル表示位置調整 - ヘッダーにぶつからないように上部余白を確保 */
@media screen and (max-width: 768px) {
  .gacha-modal-overlay {
    align-items: flex-start; /* 上寄せに変更 */
    padding: 80px 20px 20px 20px; /* 上部にヘッダー分の余白を追加 */
  }
}

@media screen and (max-width: 480px) {
  .gacha-modal-overlay {
    padding: 70px 15px 15px 15px;
  }
}

@media screen and (max-width: 360px) {
  .gacha-modal-overlay {
    padding: 65px 10px 10px 10px;
  }
}

.gacha-modal {
  background: white;
  padding: 40px 30px;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  text-align: center;
  max-width: 90%;
  min-width: 300px;
}

.gacha-modal-text {
  font-size: 20px;
  font-weight: bold;
  color: #333;
  margin-bottom: 25px;
  line-height: 1.6;
}

.gacha-modal-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.gacha-button-cancel,
.gacha-button-confirm {
  font-size: 18px;
  font-weight: bold;
  padding: 12px 30px;
  min-width: 120px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  position: relative;
  top: 0;
  -webkit-tap-highlight-color: transparent;
}

.gacha-button-cancel {
  background-color: #e0e0e0;
  color: #333;
  box-shadow: 0 5px 0 #9e9e9e, 0 6px 12px rgba(0, 0, 0, 0.25);
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.3);
}

.gacha-button-cancel:hover {
  background-color: #e8e8e8;
  box-shadow: 0 5px 0 #9e9e9e, 0 8px 16px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.gacha-button-cancel:active {
  top: 3px;
  box-shadow: 0 2px 0 #9e9e9e, 0 3px 6px rgba(0, 0, 0, 0.2);
}

.gacha-button-confirm {
  background-color: #02b340;
  color: white;
  box-shadow: 0 5px 0 #018a30, 0 6px 12px rgba(0, 0, 0, 0.25);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.gacha-button-confirm:hover {
  background-color: #02c547;
  box-shadow: 0 5px 0 #018a30, 0 8px 16px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.gacha-button-confirm:active {
  top: 3px;
  box-shadow: 0 2px 0 #018a30, 0 3px 6px rgba(0, 0, 0, 0.2);
}

.gacha-button-cancel:focus,
.gacha-button-confirm:focus {
  outline: 3px solid rgba(2, 179, 64, 0.5);
  outline-offset: 2px;
}

/* ガチャ演出オーバーレイ */

.gacha-effect-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  flex-direction: column;
  gap: 20px;
}

.gacha-effect-text {
  font-size: 32px;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
  animation: pulse 1.5s infinite;
  z-index: 100001;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.gacha-skip-button {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 16px;
  font-weight: bold;
  padding: 10px 20px;
  background-color: rgba(255, 255, 255, 0.3);
  color: white;
  border: 2px solid white;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 100002;
  -webkit-tap-highlight-color: transparent;
  /* 立体効果 */
  box-shadow: 0 4px 0 rgba(255, 255, 255, 0.4), 0 5px 15px rgba(0, 0, 0, 0.5);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.gacha-skip-button:hover {
  background-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 0 rgba(255, 255, 255, 0.4), 0 6px 18px rgba(0, 0, 0, 0.6);
  transform: translateY(-1px) scale(1.03);
}

.gacha-skip-button:active {
  top: 22px;
  box-shadow: 0 2px 0 rgba(255, 255, 255, 0.4), 0 3px 8px rgba(0, 0, 0, 0.4);
}

.gacha-skip-button:focus {
  outline: 3px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
}

.gacha-effect-video {
  max-width: 80%;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  z-index: 100000;
}


/*******************************************************************************************
** ガチャ共通スタイル - ピンク配色（VOL.1, VOL.2共通）
*******************************************************************************************/

/* ガチャページのコスト表示エリア */
.gacha-container .gacha-cost-wrapper {
  background: #ff69b4;
  border: 4px solid #ff69b4;
  box-shadow: 0 4px 15px rgba(255, 105, 180, 0.4);
}

/* トップページのガチャ情報ボックス */
.gacha-home-info {
  background: #ff69b4 !important;
  border: 4px solid #ff69b4;
  box-shadow: 0 3px 10px rgba(255, 105, 180, 0.4);
}

/*******************************************************************************************
** トップページ - ガチャ情報表示
*******************************************************************************************/

.gacha-home-info {
  background: #ff69b4;
  padding: 14px 18px;
  border-radius: 8px;
  margin-top: 12px;
  box-shadow: 0 3px 10px rgba(255, 105, 180, 0.3);
}

.gacha-home-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  font-size: 18px;
  line-height: 1.6;
}

.gacha-home-header {
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.gacha-home-label-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.gacha-home-category {
  font-size: 18px;
  color: #ff1493;
  padding: 2px 8px;
  background: #ffffff;
  border-radius: 4px;
  font-weight: 700;
}

.gacha-home-label {
  font-weight: 700;
  font-size: 18px;
  color: #ff1493;
  padding: 2px 8px;
  background: #ffffff;
  border-radius: 4px;
}

.gacha-home-cost {
  font-size: 18px;
  color: #fff;
  white-space: nowrap;
}

.gacha-home-cost-value {
  font-size: 26px;
  font-weight: bold;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.gacha-home-progress-wrapper {
  margin: 8px 0;
}

.gacha-home-progress-bar {
  width: 80%;
  height: 16px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
  margin: 0 auto;
}

.gacha-home-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #33cc66 0%, #28a650 100%);
  border-radius: 8px;
  transition: width 0.5s ease;
  box-shadow: 0 0 8px rgba(152, 217, 142, 0.6);
}

.gacha-home-remaining {
  font-size: 18px;
  color: #fff;
  width: 100%;
  text-align: center;
}

.gacha-home-remaining-value {
  font-size: 30px;
  font-weight: bold;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  font-variant-numeric: tabular-nums;
}

/*******************************************************************************************
** トップページカード装飾
*******************************************************************************************/

.home .entry-card-wrap,
.home .a-wrap,
.home .entry-card,
.home .ect-entry-card {
  border: 3px solid #33cc66 !important;
  background-color: #e8f5e9 !important;
}

.home .entry-card-wrap *,
.home .a-wrap *,
.home .entry-card *,
.home .entry-card-thumb,
.home .entry-card-thumb img,
.home .entry-card-content,
.home .gacha-home-info,
.home .gacha-home-info *,
.home .entry-card-wrap > *,
.home .a-wrap > * {
  border-color: transparent !important;
}

.home .entry-card-thumb {
  border: none !important;
  box-shadow: none !important;
  margin-bottom: 0 !important;
}

.home .entry-card-thumb img {
  border: none !important;
}

.home .entry-card-content {
  padding-top: 0 !important;
}


/*******************************************************************************************
** カテゴリーページ・アーカイブページ - カード装飾
*******************************************************************************************/

.category .entry-card-wrap,
.category .a-wrap,
.category .entry-card,
.category .ect-entry-card,
.archive .entry-card-wrap,
.archive .a-wrap,
.archive .entry-card,
.archive .ect-entry-card {
  border: 3px solid #33cc66 !important;
  background-color: #e8f5e9 !important;
}

.category .entry-card-wrap *,
.category .a-wrap *,
.category .entry-card *,
.category .entry-card-thumb,
.category .entry-card-thumb img,
.category .entry-card-content,
.category .gacha-home-info,
.category .gacha-home-info *,
.category .entry-card-wrap > *,
.category .a-wrap > *,
.archive .entry-card-wrap *,
.archive .a-wrap *,
.archive .entry-card *,
.archive .entry-card-thumb,
.archive .entry-card-thumb img,
.archive .entry-card-content,
.archive .gacha-home-info,
.archive .gacha-home-info *,
.archive .entry-card-wrap > *,
.archive .a-wrap > * {
  border-color: transparent !important;
}

.category .entry-card-thumb,
.archive .entry-card-thumb {
  border: none !important;
  box-shadow: none !important;
  margin-bottom: 0 !important;
}

.category .entry-card-thumb img,
.archive .entry-card-thumb img {
  border: none !important;
}

.category .entry-card-content,
.archive .entry-card-content {
  padding-top: 0 !important;
}
/*******************************************************************************************
** トップページ非表示要素
*******************************************************************************************/

.home .entry-card-title,
.home .entry-title,
.home .ect-entry-card-title,
.home .card-title,
.home .entry-card-wrap .entry-card-title,
.home .a-wrap .card-title,
.home .post-card .entry-title,
.home .widget-entry-cards .entry-card-title {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

/*******************************************************************************************
** カテゴリーラベル非表示
*******************************************************************************************/

.eye-catch .cat-link,
.eye-catch .category-label,
.eye-catch-wrap .cat-link,
.eye-catch-wrap .category-label,
.article-header .cat-link,
.article-header .category-label,
.entry-card-thumb .cat-link,
.entry-card-thumb .category-label,
.cat-label,
.category-link,
.entry-card .cat-link,
.entry-card .category-label,
a.cat-link,
span.cat-link,
.post-card .cat-link,
.widget-entry-cards .cat-link,
.ect-vertical-card .cat-link,
.a-wrap .cat-link,
.card .cat-link {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

/*******************************************************************************************
** 記事タイトル非表示（全ページ）
*******************************************************************************************/

.entry-title,
.article-title,
.single .entry-title,
.singular .entry-title,
.entry-header-in .entry-title,
.article-header .entry-title {
  display: none !important;
}

/*******************************************************************************************
** Cocoonテーマカスタマイズ
*******************************************************************************************/

.widget_categories ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.widget_categories ul li a {
  display: block !important;
  padding: 12px 16px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
  transition: all 0.3s !important;
  
  font-weight: 700 !important;
}

.widget_categories ul li a::before,
.sidebar .widget_categories ul li a::before {
  color: #fff !important;
}

.widget_categories ul li ul li a::before {
  
  content: "\f4d8";
  color: #02b340;
  font-weight: 600;
  padding-right: 8px;
}

.widget_categories ul li a:hover {
  background: #adffd6 !important;
  color: #02b340;
}

.sidebar h3,
.widget_categories .widget-entry-card-title {
  
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  background: linear-gradient(transparent 60%, #90ee90 60%, #90ee90 85%, transparent 85%) !important;
  display: inline-block !important;
  padding: 2px 6px !important;
}

.cat-link,
.category-label,
.entry-card-meta .cat-link {
  
  font-weight: 700 !important;
  padding: 2px 4px !important;
}

a[href*="category/"],
.category a {
  
  font-weight: 700;
}

.mobile-header-menu-buttons {
  display: none !important;
}

@media screen and (min-width: 768px) {
  .mobile-menu-buttons,
  .mobile-header-menu-buttons,
  .header-container .mobile-menu-buttons {
    display: none !important;
  }
  body {
    padding-top: 0 !important;
  }
  
  /* PCでアイキャッチ画像を中央85%で表示 */
  .eye-catch {
    max-width: 85% !important;
    width: 85% !important;
    margin: 0 auto !important;
  }
  
  .eye-catch img,
  .entry-card-thumb img,
  .article-thumbnail img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
  }
  
  .article-header .eye-catch-wrap,
  .article .eye-catch {
    width: 85% !important;
    max-width: 85% !important;
    padding: 0 !important;
    margin: 0 auto !important;
  }
  
  .eye-catch-wrap {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
  
  .article-header {
    margin-bottom: 20px !important;
  }
  
  .single .eye-catch,
  .singular .eye-catch {
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
  }
  
  .eye-catch img {
    max-height: none !important;
    height: auto !important;
  }
  
  .article-thumbnail,
  .article-thumbnail-wrap {
    width: 85% !important;
    max-width: 85% !important;
    margin: 0 auto !important;
  }
  
  .article-body-inner {
    max-width: 100% !important;
  }
}

@media screen and (min-width: 481px) and (max-width: 767px) {
  .eye-catch img {
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media screen and (max-width: 767px) {
  .mobile-menu-buttons {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    background-color: #98d98e !important;
    position: fixed !important;
    inset: 0 0 auto 0 !important;
    height: 60px !important;
    z-index: 9999 !important;
  }

  /* モバイルメニューボタンと検索ボタンを非表示 */
  .mobile-menu-buttons .home-menu-button,
  .mobile-menu-buttons .sidebar-menu-button {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }

  .mobile-menu-buttons .home-menu-button a,
  .mobile-menu-buttons .sidebar-menu-button a {
    display: none !important;
    visibility: hidden !important;
  }

  .mobile-menu-buttons::before {
    content: '';
    position: absolute !important;
    inset: 0 !important;
    background-image: url('https://towanowakaba.online/wp-content/uploads/2026/02/PCヘッダー①.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    background-color: #ffffff;
    z-index: 1 !important;
  }

  .mobile-menu-buttons .prev-menu-button,
  .mobile-menu-buttons .next-menu-button {
    display: none !important;
  }

  .mobile-menu-buttons .fa,
  .mobile-menu-buttons .fas,
  .mobile-menu-buttons a {
    color: #fff !important;
  }

  .header-container {
    position: fixed !important;
    inset: 0 0 auto 0 !important;
    z-index: 9999 !important;
  }

  /* メニューボタン関連も非表示 */
  .menu-button-in,
  .menu-button a,
  .mobile-menu-buttons .menu-button,
  .mobile-menu-buttons .menu-button a,
  .menu-button .fa,
  .menu-button .fas {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }
}

/* グローバルナビとサイドバーの背景色はCocoon設定で管理 */

/* サイドバーとナビメニューのテキスト色はCocoon設定で管理 */

/* サイドバーのスタイルはCocoon設定で管理 */

/* ガチャ演出中にフッターとコピーライトを非表示 */
body.gacha-playing .footer,
body.gacha-playing footer,
body.gacha-playing .footer-bottom,
body.gacha-playing .footer-container,
body.gacha-playing .site-info,
body.gacha-playing .copyright,
body.gacha-playing .mobile-menu-buttons,
body.gacha-playing .header-container {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  z-index: -1 !important;
}

/*******************************************************************************************
** タップハイライト削除（ブルーフラッシュ対策）
*******************************************************************************************/

* {
  -webkit-tap-highlight-color: transparent !important;
  -webkit-touch-callout: none;
}

a,
button,
input,
select,
textarea,
label,
.gacha-card,
.gacha-card-name,
.gacha-card img {
  -webkit-tap-highlight-color: transparent !important;
  -webkit-touch-callout: none !important;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

input[type="text"],
input[type="number"],
textarea {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
}

/*******************************************************************************************
** レスポンシブデザイン - スマホ対応
*******************************************************************************************/

@media screen and (max-width: 767px) {
  .gacha-container {
    padding: 60px 15px 25px;
    margin: 20px auto;
  }

  .gacha-points-wrapper {
    left: 15px;
    right: 15px;
    gap: 6px;
    justify-content: space-between;
  }

  .gacha-reset-btn {
    font-size: 11px;
    padding: 7px 8px;
    min-width: 100px;
    min-height: 36px;
    flex: 0 0 100px;
    white-space: nowrap;
  }

  .gacha-points-badge {
    font-size: 16px;
    padding: 7px 12px;
    min-height: 36px;
    flex: 0 0 auto;
  }

  .gacha-pt-text {
    font-size: 11px;
  }

  .gacha-prize-text {
    font-size: 28px;
    margin: 20px 0 10px;
  }

  .gacha-prize-images {
    gap: 10px;
    margin: 20px auto 30px;
  }

  .gacha-prize-images .gacha-prize-row {
    gap: 8px;
  }

  .gacha-prize-images img {
    background-color: #ffffff;
    padding: 8px;
    border-radius: 8px;
    max-width: 47%;
    min-width: 120px;
  }

  .gacha-cost-wrapper {
    padding: 15px;
    margin: 20px 0;
  }

  .gacha-cost-text {
    font-size: 16px;
  }

  .gacha-cost-amount {
    font-size: 28px;
  }

  .gacha-remaining-text {
    font-size: 14px;
  }

  .gacha-button-wrapper {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
  }

  .gacha-main-button {
    font-size: 19px;
    font-weight: 900;
    padding: 12px 20px;
    min-height: 52px;
    min-width: 0;
    flex: 1;
    order: 1;
    box-shadow: 0 4px 0 #02b340, 0 6px 12px rgba(0, 0, 0, 0.3);
  }

  .gacha-replay-button {
    font-size: 19px;
    font-weight: 900;
    padding: 12px 20px;
    min-height: 52px;
    min-width: 0;
    flex: 1;
    order: 2;
    box-shadow: 0 4px 0 #ff69b4, 0 6px 12px rgba(0, 0, 0, 0.3);
  }

  .gacha-convert-button {
    font-size: 19px;
    font-weight: 900;
    padding: 12px 20px;
    min-height: 52px;
    min-width: 200px;
    box-shadow: 0 4px 0 #02b340, 0 6px 12px rgba(0, 0, 0, 0.3);
  }

  .gacha-card {
    padding: 20px;
    margin: 20px auto;
  }

  .gacha-card-name {
    font-size: 20px;
    max-width: 280px;
  }

  .gacha-card-points {
    font-size: 32px;
  }

  .gacha-modal {
    padding: 30px 20px;
    min-width: 280px;
  }

  .gacha-modal-text {
    font-size: 18px;
    margin-bottom: 20px;
  }

  .gacha-modal-buttons {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
  }

  .gacha-button-cancel,
  .gacha-button-confirm {
    font-size: 15px !important;
    padding: 12px 10px !important;
    min-width: 0 !important;
    flex: 1 !important;
    min-height: 48px !important;
    white-space: nowrap !important;
  }

  .gacha-select-all-container {
    padding: 0 20px;
    margin: 15px 0;
  }

  .gacha-select-all-container label {
    font-size: 20px;
  }

  .gacha-effect-text {
    font-size: 24px;
  }

  .gacha-effect-video {
    max-width: 98% !important;
    max-height: 90vh !important;
  }
  
  /* トップページ情報 */
  .gacha-home-info {
    padding: 12px 14px;
  }

  .gacha-home-info-row {
    font-size: 16px;
  }

  .gacha-home-label-wrapper {
    gap: 6px;
  }

  .gacha-home-category {
    font-size: 16px;
    padding: 2px 6px;
  }

  .gacha-home-label {
    font-size: 16px;
  }

  .gacha-home-cost {
    font-size: 16px;
  }

  .gacha-home-cost-value {
    font-size: 22px;
  }

  .gacha-home-progress-bar {
    height: 14px;
  }

  .gacha-home-remaining {
    font-size: 16px;
  }

  .gacha-home-remaining-value {
    font-size: 26px;
  }
}

/* 小型スマホ対応 (480px以下) */
@media screen and (max-width: 480px) {
  .gacha-points-wrapper {
    position: absolute;
    top: 10px;
    right: 10px;
    left: 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    height: auto;
    z-index: 10;
  }

  .gacha-reset-btn {
    font-size: 11px;
    font-weight: bold;
    padding: 6px 10px;
    min-width: 85px;
    max-width: 95px;
    min-height: 32px;
    height: 32px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .gacha-points-badge {
    font-size: 14px;
    padding: 4px 10px;
    min-width: 100px;
    width: auto;
    max-width: 120px;
    min-height: 32px;
    height: 32px;
    flex-shrink: 0;
  }

  .gacha-pt-text {
    font-size: 10px;
  }

  .gacha-container {
    padding-top: 80px;
  }

  .gacha-main-button {
    font-size: 19px !important;
    padding: 11px 24px !important;
    min-height: 48px !important;
    min-width: 170px !important;
    max-width: 85% !important;
    /* 立体効果を維持 */
    box-shadow: 0 5px 0 #018a30, 0 6px 12px rgba(0, 0, 0, 0.25) !important;
  }
  
  .gacha-main-button:hover:enabled {
    box-shadow: 0 5px 0 #018a30, 0 7px 14px rgba(0, 0, 0, 0.3) !important;
  }
  
  .gacha-main-button:active:enabled {
    box-shadow: 0 2px 0 #018a30, 0 3px 6px rgba(0, 0, 0, 0.2) !important;
  }

  .gacha-convert-button {
    font-size: 19px !important;
    padding: 11px 24px !important;
    min-height: 48px !important;
    min-width: 170px !important;
    max-width: 85% !important;
    /* 立体効果を維持 */
    box-shadow: 0 5px 0 #018a30, 0 6px 12px rgba(0, 0, 0, 0.25) !important;
  }
  
  .gacha-convert-button:hover:enabled {
    box-shadow: 0 5px 0 #018a30, 0 7px 14px rgba(0, 0, 0, 0.3) !important;
  }
  
  .gacha-convert-button:active:enabled {
    box-shadow: 0 2px 0 #018a30, 0 3px 6px rgba(0, 0, 0, 0.2) !important;
  }

  .gacha-replay-button {
    font-size: 19px !important;
    padding: 11px 24px !important;
    min-height: 48px !important;
    min-width: 170px !important;
    max-width: 85% !important;
    /* 立体効果を維持 */
    box-shadow: 0 5px 0 #d14a8a, 0 6px 12px rgba(0, 0, 0, 0.25) !important;
  }
  
  .gacha-replay-button:hover {
    box-shadow: 0 5px 0 #d14a8a, 0 7px 14px rgba(0, 0, 0, 0.3) !important;
  }
  
  .gacha-replay-button:active {
    box-shadow: 0 2px 0 #d14a8a, 0 3px 6px rgba(0, 0, 0, 0.2) !important;
  }

  .gacha-modal {
    padding: 35px 20px;
    max-width: 85%;
    min-width: 280px;
  }

  .gacha-modal-text {
    font-size: 17px;
    line-height: 1.5;
    margin-bottom: 20px;
    white-space: nowrap;
    overflow: visible;
  }

  .gacha-modal-buttons {
    gap: 10px;
  }

  .gacha-button-cancel,
  .gacha-button-confirm {
    font-size: 16px;
    padding: 10px 24px;
    min-width: 100px;
  }
  
  /* 小型スマホトップページ情報 */
  .gacha-home-info {
    padding: 10px 12px;
  }

  .gacha-home-info-row {
    font-size: 15px;
  }

  .gacha-home-label-wrapper {
    gap: 4px;
  }

  .gacha-home-category {
    font-size: 15px;
    padding: 2px 5px;
  }

  .gacha-home-label {
    font-size: 15px;
  }

  .gacha-home-cost {
    font-size: 14px;
  }

  .gacha-home-cost-value {
    font-size: 20px;
  }

  .gacha-home-progress-bar {
    height: 12px;
  }

  .gacha-home-remaining {
    font-size: 14px;
  }

  .gacha-home-remaining-value {
    font-size: 24px;
  }
}

/* さらに小さい画面用 (360px以下) */
@media screen and (max-width: 360px) {
  .gacha-points-wrapper {
    gap: 4px;
    right: 8px;
    left: 8px;
  }

  .gacha-reset-btn {
    font-size: 10px;
    padding: 5px 8px;
    min-width: 75px;
    max-width: 85px;
    min-height: 30px;
    height: 30px;
  }

  .gacha-points-badge {
    font-size: 13px;
    padding: 4px 8px;
    min-width: 90px;
    max-width: 110px;
    min-height: 30px;
    height: 30px;
  }

  .gacha-pt-text {
    font-size: 9px;
  }

  .gacha-container {
    padding: 85px 15px 25px;
  }

  .gacha-main-button {
    font-size: 17px !important;
    padding: 10px 20px !important;
    min-height: 44px !important;
    min-width: 150px !important;
  }

  .gacha-convert-button {
    font-size: 17px !important;
    padding: 10px 20px !important;
    min-height: 44px !important;
    min-width: 150px !important;
  }

  .gacha-replay-button {
    font-size: 17px !important;
    padding: 10px 20px !important;
    min-height: 44px !important;
    min-width: 150px !important;
  }

  .gacha-modal {
    padding: 30px 15px;
    max-width: 90%;
    min-width: 260px;
  }

  .gacha-modal-text {
    font-size: 15px;
    line-height: 1.4;
  }

  .gacha-button-cancel,
  .gacha-button-confirm {
    font-size: 15px;
    padding: 9px 20px;
    min-width: 90px;
  }
}

/* 中型スマホ用 (481px-600px) */
@media screen and (min-width: 481px) and (max-width: 600px) {
  .gacha-points-wrapper {
    right: 15px;
    gap: 8px;
  }

  .gacha-reset-btn {
    font-size: 12px;
    padding: 7px 12px;
    min-width: 100px;
  }

  .gacha-points-badge {
    font-size: 16px;
    min-width: 110px;
  }

  .gacha-main-button {
    font-size: 21px !important;
    padding: 13px 30px !important;
    min-height: 52px !important;
    min-width: 190px !important;
  }

  .gacha-convert-button {
    font-size: 21px !important;
    padding: 13px 30px !important;
    min-height: 52px !important;
    min-width: 190px !important;
  }

  .gacha-replay-button {
    font-size: 21px !important;
    padding: 13px 30px !important;
    min-height: 52px !important;
    min-width: 190px !important;
  }

  .gacha-modal-text {
    font-size: 18px;
  }
}

/* 賞画像のタブレット・スマホ対応 */
@media screen and (max-width: 768px) {
  .gacha-prize-item::after {
    font-size: 13px;
    padding: 4px 10px;
    bottom: 14px;
    right: 14px;
    border-width: 1.5px;
  }
}

@media screen and (max-width: 600px) {
  .gacha-prize-item img {
    max-width: 200px;
    min-width: 140px;
  }

  .gacha-prize-item::after {
    font-size: 12px;
    padding: 3px 8px;
    bottom: 12px;
    right: 12px;
    border-width: 1.5px;
  }
}

@media screen and (max-width: 400px) {
  .gacha-prize-item img {
    max-width: 160px;
    min-width: 120px;
  }

  .gacha-prize-item::after {
    font-size: 11px;
    padding: 2px 6px;
    bottom: 10px;
    right: 10px;
    border-width: 1px;
  }
}
/*******************************************************************************************
** カテゴリーページで投稿がない場合の表示を非表示
*******************************************************************************************/

/* NOT FOUND、投稿が見つかりませんでしたを非表示 */
.posts-not-found {
  display: none;
}

/* カテゴリータイトルを非表示 */
.archive-title {
   display: none;
}
/*******************************************************************************************
** グローバルナビゲーション - 全メニュー項目のフォントサイズ統一
*******************************************************************************************/

/* ヘッダーナビゲーションの全メニュー項目のフォントサイズを統一 */
.navi-in a,
.navi-in > ul > li > a,
.header-container .navi-in a,
.header-in .navi-in a,
#header .navi-in a,
.navi .navi-in a,
.navi-in .menu-item > a,
.navi-in .menu-item a,
.header .navi-in a {
  font-size: 14px !important;  /* すべてのメニュー項目のサイズを統一 */
  font-weight: 400 !important; /* 太さも統一 */
}

/* モバイルメニュー */
.mobile-menu-buttons a {
  font-size: 14px !important;
  font-weight: 400 !important;
}

/* レスポンシブ対応 */
@media screen and (max-width: 1023px) {
  .navi-in a,
  .navi-in > ul > li > a,
  .mobile-menu-buttons a {
    font-size: 13px !important;
  }
}

@media screen and (max-width: 768px) {
  .navi-in a,
  .navi-in > ul > li > a,
  .mobile-menu-buttons a {
    font-size: 12px !important;
  }
}/*******************************************************************************************
** スマホ用カテゴリーナビゲーション（改良版）
*******************************************************************************************/

/* スマホ用カテゴリーナビゲーションのコンテナ */
/*******************************************************************************************
** スマホ用カテゴリーナビゲーション（改良版・タップしやすいサイズ）
*******************************************************************************************/

/* スマホ用カテゴリーナビゲーションのコンテナ */
.mobile-category-nav {
  display: none; /* デフォルトは非表示 */
  background-color: #ffffff;
  margin: 75px 0 30px; /* ヘッダー高さ60px + スペース15px = 75px */
  padding: 0;
  overflow-x: auto; /* 横スクロール有効化 */
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch; /* スムーズスクロール（iOS） */
  scrollbar-width: none; /* スクロールバー非表示（Firefox） */
}

/* スクロールバー非表示（Chrome, Safari） */
.mobile-category-nav::-webkit-scrollbar {
  display: none;
}

/* スマホ表示時のみ表示 */
@media screen and (max-width: 834px) {
  .mobile-category-nav {
    display: block;
  }
}

/* カテゴリーリストのul */
.mobile-category-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center; /* 中央寄せに変更 */
  align-items: stretch;
  min-width: 100%; /* 最小幅を確保 */
  width: max-content; /* コンテンツ幅に応じて伸縮 */
}

/* 各カテゴリー項目 */
.mobile-category-nav li {
  flex: 0 0 auto; /* 固定幅（スクロール対応） */
  margin: 0;
  padding: 0;
  position: relative;
  min-width: 85px; /* 最小幅を少し広げてタップしやすく */
}

/* カテゴリーリンク - タップしやすいサイズに統一 */
.mobile-category-nav a {
  display: block;
  text-align: center;
  padding: 16px 20px; /* パディングを増やしてタップエリアを拡大 */
  font-size: 15px; /* 基本サイズを大きく */
  font-weight: 500;
  color: #333333;
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
  border-bottom: 2px solid #ff69b4; /* 細いピンクの下線（リプレイボタンと同じ色） */
  white-space: nowrap; /* テキストを1行に */
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1); /* タップ時のハイライト */
}

/* ホバー時 */
.mobile-category-nav a:hover {
  background-color: #f5f5f5;
}

/* アクティブ（選択中）のカテゴリー */
.mobile-category-nav li.active a {
  color: #02b340;
  font-weight: 700;
  border-bottom: 4px solid #02b340; /* 太い緑の下線 */
}

/* スクロールインジケーター（左右に影を表示） */
.mobile-category-nav::before,
.mobile-category-nav::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 20px;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s;
}

.mobile-category-nav::before {
  left: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.9), transparent);
}

.mobile-category-nav::after {
  right: 0;
  background: linear-gradient(to left, rgba(255, 255, 255, 0.9), transparent);
}

/* スクロール可能な場合に影を表示 */
.mobile-category-nav.can-scroll-left::before {
  opacity: 1;
}

.mobile-category-nav.can-scroll-right::after {
  opacity: 1;
}

/* 小型スマホ対応 (480px以下) - サイズを維持してタップしやすく */
@media screen and (max-width: 480px) {
  .mobile-category-nav {
    margin: 70px 0 28px; /* ヘッダー高さ60px + スペース10px = 70px */
  }
  
  .mobile-category-nav a {
    font-size: 15px; /* 従来の13pxから15pxに拡大 */
    padding: 15px 18px; /* 従来の12px 15pxから拡大 */
  }
  
  .mobile-category-nav li {
    min-width: 85px; /* 従来の70pxから拡大 */
  }
}

/* 超小型スマホ対応 (360px以下) - サイズを維持してタップしやすく */
@media screen and (max-width: 360px) {
  .mobile-category-nav {
    margin: 68px 0 25px; /* ヘッダー高さ60px + スペース8px = 68px */
  }
  
  .mobile-category-nav a {
    font-size: 14px; /* 従来の12pxから14pxに拡大 */
    padding: 14px 16px; /* 従来の10px 12pxから拡大 */
  }
  
  .mobile-category-nav li {
    min-width: 80px; /* 従来の65pxから拡大 */
  }
}

/*******************************************************************************************
** コレクション機能のスタイル
*******************************************************************************************/

/* コレクションボタン（旧スタイル - 使用しない） */
.gacha-collection-btn {
  display: none !important;
}

/* コレクションモーダル */
.gacha-collection-modal {
  background: #ffffff;
  padding: 25px 20px 20px 20px;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  max-width: 90vw;
  max-height: 85vh;
  width: 900px;
  overflow-y: auto;
  position: relative;
  margin: 20px auto;
}

.gacha-collection-header {
  display: flex !important;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 12px 20px;
  margin-top: 0;
  margin-bottom: 25px;
  background-color: #dc143c !important;
  border-bottom: none;
  border-radius: 8px;
}

.gacha-collection-title {
  display: block !important;
  font-size: 32px;
  font-weight: 900;
  color: #ffffff !important;
  text-align: center;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
  background-color: transparent !important;
  background-image: none !important;
  background: none !important;
  border: none !important;
  border-bottom: none !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.05em;
}

/* 図鑑タイトルにクローバーマークを追加 */
.gacha-collection-title::before {
  content: "🍀 ";
  margin-right: 8px;
}

.gacha-collection-title::after {
  content: " 🍀";
  margin-left: 8px;
}

/* h2タグへの直接指定 */
.gacha-collection-header h2,
.gacha-collection-header h2.gacha-collection-title {
  display: block !important;
  font-size: 32px !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  text-align: center !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
  background-color: transparent !important;
  background-image: none !important;
  background: none !important;
  border: none !important;
  border-bottom: none !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2) !important;
  letter-spacing: 0.05em !important;
  box-shadow: none !important;
}

.gacha-collection-close {
  position: absolute;
  top: 50% !important;
  right: 20px !important;
  transform: translateY(-50%) !important;
  background: transparent !important;
  color: #fff !important;
  border: none !important;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  border-radius: 0;
  line-height: 1;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none !important;
}

.gacha-collection-close:hover {
  background: transparent !important;
  color: #fff !important;
  transform: translateY(-50%) scale(1.15) !important;
  border: none !important;
  box-shadow: none !important;
}

.gacha-collection-close:active {
  transform: translateY(-50%) scale(1.0) !important;
  box-shadow: none !important;
}

.gacha-collection-close:focus {
  outline: none;
}

/* コレクショングリッド - 全画面サイズで3列に統一 */
.gacha-collection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 15px;
  padding: 10px;
}

.gacha-collection-item {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
}

.gacha-collection-item:hover {
  transform: scale(1.05);
  z-index: 10;
}

.gacha-collection-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 未取得カード（グレースケール） */
.gacha-collection-item.locked img {
  filter: grayscale(100%) brightness(0.5);
}

.gacha-collection-item.locked::after {
  content: "？";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 48px;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* カード名表示 */
.gacha-collection-item-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 6px 4px;
  font-size: 11px;
  font-weight: bold;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .gacha-collection-modal {
    width: 95vw;
    max-height: calc(100vh - 100px);
    padding: 20px 15px 15px 15px;
    margin: 0;
  }
  
  .gacha-collection-header {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    margin-top: 0;
    margin-bottom: 18px;
    background-color: #dc143c !important;
    border-bottom: none;
    border-radius: 6px;
  }
  
  .gacha-collection-title {
    font-size: 20px !important;
    color: #ffffff !important;
    padding: 0 !important;
    background-color: transparent !important;
    background-image: none !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
  }
  
  /* クローバーマークのサイズ調整 */
  .gacha-collection-title::before {
    content: "🍀 ";
    margin-right: 6px;
  }
  
  .gacha-collection-title::after {
    content: " 🍀";
    margin-left: 6px;
  }
  
  .gacha-collection-header h2,
  .gacha-collection-header h2.gacha-collection-title {
    font-size: 20px !important;
    color: #ffffff !important;
    padding: 0 !important;
    background-color: transparent !important;
    background-image: none !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
  }
  
  .gacha-collection-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px;
  }
  
  .gacha-collection-btn {
    width: 160px;
    font-size: 16px;
    padding: 12px 24px;
  }
  
  .gacha-collection-close {
    font-size: 24px;
    width: 40px;
    height: 40px;
    right: 15px !important;
  }
  }
}

/* 小型スマホ対応 */
@media screen and (max-width: 480px) {
  .gacha-collection-modal {
    max-height: calc(100vh - 90px);
    padding: 18px 12px 12px 12px;
  }
  
  .gacha-collection-header {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    margin-top: 0;
    background-color: #dc143c !important;
    border-bottom: none;
    border-radius: 6px;
  }
  
  .gacha-collection-title {
    font-size: 20px !important;
    color: #ffffff !important;
    padding: 0 !important;
    background-color: transparent !important;
    background-image: none !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
  }
  
  /* クローバーマークのサイズ調整 */
  .gacha-collection-title::before,
  .gacha-collection-title::after {
    font-size: 18px;
  }
  
  .gacha-collection-header h2,
  .gacha-collection-header h2.gacha-collection-title {
    font-size: 20px !important;
    color: #ffffff !important;
    padding: 0 !important;
    background-color: transparent !important;
    background-image: none !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
  }
  
  .gacha-collection-close {
    font-size: 22px;
    width: 38px;
    height: 38px;
    right: 12px !important;
  }
  }
  
  .gacha-collection-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px;
  }
}

/* 超小型スマホ対応 */
@media screen and (max-width: 360px) {
  .gacha-collection-modal {
    max-height: calc(100vh - 170px);
    padding: 16px 10px 10px 10px;
  }
  
  .gacha-collection-header {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    margin-top: 0;
    background-color: #dc143c !important;
    border-bottom: none;
    border-radius: 6px;
  }
  
  .gacha-collection-title {
    font-size: 18px !important;
    color: #ffffff !important;
    padding: 0 !important;
    background-color: transparent !important;
    background-image: none !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
  }
  
  /* クローバーマークのサイズ調整 */
  .gacha-collection-title::before,
  .gacha-collection-title::after {
    font-size: 16px;
  }
  
  .gacha-collection-header h2,
  .gacha-collection-header h2.gacha-collection-title {
    font-size: 18px !important;
    color: #ffffff !important;
    padding: 0 !important;
    background-color: transparent !important;
    background-image: none !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
  }
  
  .gacha-collection-close {
    font-size: 20px;
    width: 36px;
    height: 36px;
    right: 10px !important;
  }
  
  .gacha-collection-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}
/*******************************************************************************************
** 画像拡大モーダルのスタイル
*******************************************************************************************/

/* 画像拡大モーダル */
.gacha-image-zoom-modal {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gacha-image-zoom-modal img {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

/* 拡大モーダルの閉じるボタン */
.gacha-image-zoom-close {
  position: absolute;
  top: -15px;
  right: -15px;
  background: #fff;
  border: none;
  color: #333;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  padding: 0;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  line-height: 1;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  /* 立体効果 */
  box-shadow: 0 5px 0 #c0c0c0, 0 6px 15px rgba(0, 0, 0, 0.3);
}

.gacha-image-zoom-close:hover {
  background: #ff69b4;
  color: #fff;
  transform: translateY(-2px) scale(1.1) rotate(90deg);
  box-shadow: 0 5px 0 #d14a8a, 0 8px 20px rgba(255, 105, 180, 0.6);
}

.gacha-image-zoom-close:active {
  top: -13px;
  box-shadow: 0 2px 0 #c0c0c0, 0 3px 8px rgba(0, 0, 0, 0.2);
}

.gacha-image-zoom-close:focus {
  outline: 3px solid rgba(255, 105, 180, 0.5);
  outline-offset: 2px;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .gacha-image-zoom-modal img {
    max-width: 95vw;
    max-height: 85vh;
  }
  
  .gacha-image-zoom-close {
    font-size: 28px;
    width: 40px;
    height: 40px;
    top: -10px;
    right: -10px;
  }
}

/*******************************************************************************************
** 図鑑ボタンのスタイル修正（10連ボタンと同じサイズ）
*******************************************************************************************/

/* 図鑑ボタン - メインボタンスタイルを上書き */
.gacha-main-button.gacha-collection-btn-main {
  font-size: 26px;
  font-weight: 900;
  padding: 16px 40px;
  min-height: 60px;
  min-width: 240px;
  border-radius: 12px;
  background-color: #dc143c !important;
  color: white !important;
  border: none;
  box-shadow: 0 6px 0 #b01030, 0 8px 15px rgba(0, 0, 0, 0.3) !important;
  cursor: pointer;
  transition: all 0.2s;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3), 0 0 10px rgba(255, 255, 255, 0.2);
  letter-spacing: 0.05em;
  position: relative;
  top: 0;
  -webkit-tap-highlight-color: transparent;
}

.gacha-main-button.gacha-collection-btn-main:hover,
.gacha-main-button.gacha-collection-btn-main:hover:enabled {
  background-color: #dc143c !important;
  box-shadow: 0 6px 0 #b01030, 0 10px 20px rgba(0, 0, 0, 0.4) !important;
  transform: translateY(-2px);
}

.gacha-main-button.gacha-collection-btn-main:active,
.gacha-main-button.gacha-collection-btn-main:active:enabled {
  top: 4px;
  box-shadow: 0 2px 0 #b01030, 0 4px 8px rgba(0, 0, 0, 0.2) !important;
}

/*******************************************************************************************
** コレクショングリッドのカードにカーソルポインタを追加
*******************************************************************************************/

/* 取得済みカードのホバー効果を強化 */
.gacha-collection-item:not(.locked) {
  cursor: pointer;
}

.gacha-collection-item:not(.locked):hover {
  transform: scale(1.08);
  z-index: 10;
  box-shadow: 0 8px 20px rgba(255, 105, 180, 0.5);
}

/* 未取得カードはポインタを変更 */
.gacha-collection-item.locked {
  cursor: not-allowed;
}
/*******************************************************************************************
** モーダル表示時のz-index修正 - グローバルメニュー対策
*******************************************************************************************/

/* モーダルオーバーレイのz-indexを大幅に引き上げ */
.gacha-modal-overlay {
  z-index: 99998 !important;
}

/* コレクションモーダル */
.gacha-collection-modal {
  position: relative;
  z-index: 99999 !important;
}

/* コレクションヘッダー */
.gacha-collection-header {
  position: relative;
  z-index: 100000 !important;
}

/* コレクショングリッド */
.gacha-collection-grid {
  position: relative;
  z-index: 100000 !important;
}

/* コレクションアイテム */
.gacha-collection-item {
  position: relative;
  z-index: 100001 !important;
}

.gacha-collection-item:hover {
  z-index: 100010 !important;
}

/* 閉じるボタン */
.gacha-collection-close {
  z-index: 100005 !important;
}

/* 画像拡大モーダル */
.gacha-image-zoom-modal {
  position: relative;
  z-index: 99999 !important;
}

.gacha-image-zoom-close {
  z-index: 100005 !important;
}

/* モーダル表示時にヘッダーとナビゲーションのz-indexを強制的に下げる */
body.gacha-modal-active .header-container {
  z-index: 1 !important;
}

body.gacha-modal-active .mobile-category-nav {
  z-index: 1 !important;
}

/* さらに念押しで、すべての固定ヘッダーを下げる */
body.gacha-modal-active header,
body.gacha-modal-active nav[style*="position: fixed"],
body.gacha-modal-active [class*="header"],
body.gacha-modal-active [class*="navigation"] {
  z-index: 1 !important;
}
/*******************************************************************************************
** スマホ用ボタン立体化 - タッチデバイス最適化
*******************************************************************************************/

/* タッチデバイスでのアクティブ状態をより明確に */
@media (hover: none) and (pointer: coarse) {
  .gacha-button-cancel:active,
  .gacha-button-confirm:active,
  .gacha-reset-btn:active,
  .gacha-skip-button:active {
    transform: scale(0.97);
  }
  
  .gacha-main-button:active:enabled,
  .gacha-convert-button:active:enabled,
  .gacha-replay-button:active {
    transform: scale(0.97);
  }
  
  .gacha-collection-close:active {
    transform: translateY(-50%) scale(0.97) !important;
  }
  
  .gacha-image-zoom-close:active {
    transform: scale(0.97);
  }
}

/* 480px以下: リセットボタンの立体効果を調整 */
@media screen and (max-width: 480px) {
  .gacha-reset-btn {
    box-shadow: 0 3px 0 #d0d0d0, 0 4px 8px rgba(0, 0, 0, 0.15);
  }
  
  .gacha-reset-btn:hover {
    box-shadow: 0 3px 0 #d0d0d0, 0 5px 10px rgba(0, 0, 0, 0.2);
  }
  
  .gacha-reset-btn:active {
    top: 2px;
    box-shadow: 0 1px 0 #d0d0d0, 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  
  .gacha-button-cancel,
  .gacha-button-confirm {
    box-shadow: 0 4px 0 var(--shadow-color), 0 5px 10px rgba(0, 0, 0, 0.2);
  }
  
  .gacha-button-cancel {
    --shadow-color: #9e9e9e;
  }
  
  .gacha-button-confirm {
    --shadow-color: #018a30;
  }
  
  .gacha-skip-button {
    box-shadow: 0 3px 0 rgba(255, 255, 255, 0.4), 0 4px 10px rgba(0, 0, 0, 0.4);
  }
  
  .gacha-skip-button:active {
    top: 21px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4), 0 2px 5px rgba(0, 0, 0, 0.3);
  }
  
  .gacha-collection-close {
    box-shadow: 0 4px 0 #999, 0 5px 12px rgba(0, 0, 0, 0.25);
  }
  
  .gacha-collection-close:hover {
    box-shadow: 0 4px 0 #8b0000, 0 6px 15px rgba(220, 20, 60, 0.5);
  }
  
  .gacha-image-zoom-close {
    box-shadow: 0 4px 0 #c0c0c0, 0 5px 12px rgba(0, 0, 0, 0.25);
  }
  
  .gacha-image-zoom-close:hover {
    box-shadow: 0 4px 0 #d14a8a, 0 6px 15px rgba(255, 105, 180, 0.5);
  }
}

/* 360px以下: さらに小型のデバイス向け調整 */
@media screen and (max-width: 360px) {
  .gacha-reset-btn {
    box-shadow: 0 3px 0 #d0d0d0, 0 4px 7px rgba(0, 0, 0, 0.15);
  }
  
  .gacha-reset-btn:hover {
    box-shadow: 0 3px 0 #d0d0d0, 0 5px 9px rgba(0, 0, 0, 0.18);
  }
  
  .gacha-reset-btn:active {
    top: 2px;
    box-shadow: 0 1px 0 #d0d0d0, 0 2px 4px rgba(0, 0, 0, 0.1);
  }
}