@charset "UTF-8";

/* ==================================================
トップページ (index.php) 専用スタイル
================================================== */
.index-banner-logo {
  width: calc(100% + 56px);
  margin-left: -28px;
  margin-top: -35px;
  margin-bottom: 20px;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  display: block;
  object-fit: cover;
  object-position: center;
  max-height: 140px;
}

.about-link-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--rm-primary-green, #2d6a4f), var(--rm-bg-grad-end, #1e4d38));
  color: white !important;
  font-weight: bold;
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 1rem;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(45, 106, 79, 0.3);
  transition: all 0.3s ease;
  border: 2px solid rgba(255,255,255,0.2);
}

.about-link-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(45, 106, 79, 0.4);
  background: linear-gradient(135deg, #367d5e, #245c43);
}

.marker-highlight {
  background: linear-gradient(transparent 55%, #ffeaa7 55%);
  padding: 0 4px;
}

.monthly-stats-box {
  background: #fdfbf7;
  border: 2px dashed #fdcb6e;
  border-radius: 10px;
  padding: 12px 15px;
  margin-top: 15px;
  margin-bottom: 15px;
  text-align: left;
  box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.stat-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: #2d3436;
}

.stat-row:last-child {
  margin-bottom: 0;
  border-top: 1px dashed #dfe6e9;
  padding-top: 8px;
}

.stat-label {
  font-weight: bold;
  white-space: nowrap;
  flex-shrink: 0;
}

.stat-current {
  color: #d63031;
  font-weight: bold;
  font-size: 1.05rem;
  text-align: right;
  word-break: keep-all;
}

.stat-last {
  color: #636e72;
  font-size: 0.9rem;
}

/* ==================================================
共有・QRコード アイコン (左右配置用)
================================================== */
.edge-icon-btn {
  position: absolute;
  top: -20px; /* バナー画像の下端付近に配置 */
  background: none;
  border: none;
  color: var(--rm-primary-green, #2d6a4f);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: none;
}

.edge-icon-btn:hover {
  background-color: rgba(45, 106, 79, 0.1);
  transform: scale(1.1);
}

.icon-left { left: 5px; }
.icon-right { right: 5px; }

/* ==================================================
ウィークリートラッカー
================================================== */
.weekly-tracker {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 15px auto 25px;
}

.day-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #a3b8b0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.95rem;
  color: #2d3436;
  background: #fff;
}

.day-circle.today {
  border-color: var(--rm-primary-green, #2d6a4f);
  border-width: 3px;
}

.tree-icon {
  font-size: 1.3rem;
  cursor: pointer;
  transition: transform 0.2s;
}

.tree-icon:hover {
  transform: scale(1.15);
}

/* ご褒美演出（桜のアニメーション） */
@keyframes spin-sakura {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.sakura-spin {
  display: inline-block;
  animation: spin-sakura 0s linear infinite;
  font-size: 2.2rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

.sakura-spin-tracker {
  display: inline-block;
  animation: spin-sakura 1.5s linear infinite;
  font-size: 1.3rem;
  cursor: pointer;
  transition: transform 0.2s;
}

.sakura-spin-tracker:hover {
  transform: scale(1.15);
}

.day-circle:nth-child(1) .sakura-spin-tracker { animation-delay: 0.0s; }
.day-circle:nth-child(2) .sakura-spin-tracker { animation-delay: 0.15s; }
.day-circle:nth-child(3) .sakura-spin-tracker { animation-delay: 0.3s; }
.day-circle:nth-child(4) .sakura-spin-tracker { animation-delay: 0.45s; }
.day-circle:nth-child(5) .sakura-spin-tracker { animation-delay: 0.6s; }
.day-circle:nth-child(6) .sakura-spin-tracker { animation-delay: 0.75s; }
.day-circle:nth-child(7) .sakura-spin-tracker { animation-delay: 0.9s; }

/* モーダル用ご褒美演出 */
@keyframes tada-interval {
  0% { transform: scale(1); }
  5%, 10% { transform: scale(0.9) rotate(-3deg); }
  15%, 25%, 35%, 45% { transform: scale(1.15) rotate(3deg); }
  20%, 30%, 40% { transform: scale(1.15) rotate(-3deg); }
  50% { transform: scale(1) rotate(0); }
  100% { transform: scale(1) rotate(0); }
}

.reward-icon {
  display: inline-block;
  animation: tada-interval 2s ease-in-out infinite;
  font-size: 2.6rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

#video-modal .lang-toggle-btn.active {
  background-color: var(--rm-primary-green, #2d6a4f);
  color: white;
  border-color: var(--rm-primary-green, #2d6a4f);
}

/* ==================================================
新デザイン: 大型言語切り替えボタン
================================================== */
.lang-toggle-group-large {
  display: flex;
  justify-content: center;
  gap: 15px;
  /* 親要素のpaddingを相殺してカード横幅いっぱいに広げます */
  margin: 15px -28px 25px;
  /* 上下に余白をもたせます */
  padding: 12px 0;
  /* スクロール時に裏側の文字が透けないよう、カードと同じ背景色を指定します */
  background-color: var(--rm-card-bg, #fcfbf7);

  /* ↓ スクロール追従（固定）のための設定 ↓ */
  position: sticky;
  top: 0;
  z-index: 100;
  /* 少しだけ影をつけて、浮いているように見せます */
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.lang-toggle-btn-large {
  width: 75px;
  height: 38px;
  border-radius: 19px;
  border: 2px solid var(--rm-border-color, #e0d8c3);
  background-color: #fff;
  color: #555;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-toggle-btn-large:hover {
  background-color: #f1f2f6;
  border-color: #b2bec3;
}

.lang-toggle-btn-large.active {
  background-color: var(--rm-primary-green, #2d6a4f);
  color: white;
  border-color: var(--rm-primary-green, #2d6a4f);
  box-shadow: 0 4px 8px rgba(45, 106, 79, 0.3);
}

/* ==================================================
新デザイン: 2カラムゲーム選択カード
================================================== */
.game-selection-container {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}

.game-selection-box {
  flex: 1;
  background: #fff;
  border: 2px solid var(--rm-border-color, #e0d8c3);
  border-radius: 12px;
  padding: 15px 12px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.game-selection-box h3 {
  font-size: 1.05rem;
  color: var(--rm-primary-green, #2d6a4f);
  margin-bottom: 8px;
  border-bottom: 1px solid var(--rm-accent-gold, #d4af37);
  padding-bottom: 5px;
}

.game-selection-box p {
  font-size: 0.8rem;
  color: #555;
  margin-bottom: 12px;
  flex-grow: 1;
  line-height: 1.5;
}

/* 小型成績表示（カード内用） */
.stat-mini {
  font-size: 0.75rem;
  background: #fdfbf7;
  border: 1px dashed #fdcb6e;
  border-radius: 6px;
  padding: 6px;
  margin-bottom: 12px;
  text-align: center;
  color: #2d3436;
}

.stat-mini strong {
  color: #d63031;
}

/* レスポンシブ対応 (スマホ等でも横並びを維持しつつ、サイズを最適化) */
@media screen and (max-width: 450px) {
  .game-selection-container {
    /* 縦並び（column）を解除して横並びを維持。隙間を少し狭くします */
    flex-direction: row;
    gap: 8px;
  }

  .game-selection-box {
    /* スマホ画面に合わせてカード内の余白を少し減らします */
    padding: 12px 8px;
  }

  .game-selection-box h3 {
    /* タイトルの文字サイズを少し小さくして改行を防ぎます */
    font-size: 0.95rem;
  }

  .game-selection-box p {
    font-size: 0.75rem;
  }

  .stat-mini {
    font-size: 0.7rem;
    padding: 4px;
  }
}

/* ==================================================
新デザイン: 多言語切り替えテキスト制御 (i18n)
================================================== */
.i18n-text {
  display: none !important;
}

/* ブロック要素の表示化 */
div.i18n-text.active, p.i18n-text.active, h3.i18n-text.active, h2.i18n-text.active {
  display: block !important;
}

/* インライン要素の表示化 */
span.i18n-text.active {
  display: inline !important;
}
