
:root {
    /* メインカラー */
    --primary-color: #67f2e2;
    --primary-dark: #4dd5c5;
    --primary-light: #86f8eb;
    --accent-color: #ff7b54;
    
    /* テキストカラー */
    --text-dark: #2a3746;
    --text-light: #ffffff;
    
    /* 背景カラー */
    --background-light: #f8f9fa;
    --card-bg: #ffffff;
    
    /* 機能カラー */
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    
    /* シャドウ */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    
    /* ボーダー */
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    
    /* トランジション */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* スペーシング */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    
    /* レガシー変数（後方互換性のため維持） */
    --primary-color-rgb: 103, 242, 226;
    --primary-color-text: var(--text-dark);
    --primary-color-light: #e0fcf7;
    --body-bg-color: var(--background-light);
    --section-bg-color: transparent;
    --text-color: var(--text-dark);
    --text-on-primary: var(--text-dark);
    --text-on-dark-bg: var(--text-light);
    --border-color: transparent;
    --footer-bg-color: var(--text-dark);
    --footer-text-color: var(--text-light);
    --button-primary-bg: var(--primary-color);
    --button-primary-text: var(--text-dark);
    --button-primary-hover-bg: var(--primary-dark);
    --button-primary-hover-text: var(--text-dark);
}

/* ======= イベントチャレンジ新デザイン ======= */
body.event-page {
  font-family: 'Noto Sans JP', sans-serif;
}

.event-challenge-inner {
  max-width: 430px;
  margin: 0 auto;
  background: transparent;
}

.egg-top-area {
  text-align: center;
}
.egg-main-img {
  width: 100px;
}

.challenge-header {
  text-align: center;
}
.challenge-title {
    font-size: 2.5em;
    font-weight: 900;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    background-color: var(--primary-color);
    display: inline-block;
    padding: 10px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.challenge-subtitle {
  font-size: 1rem;
  margin-bottom: 0.2em;
}

.challenge-desc {
  font-size: 0.9rem;
}

.challenge-desc {
  font-size: 0.9rem;
  color: #1a2a36;
  background: none;
  display: inline-block;
  padding: 0.18em 0.9em;
  border-radius: 1em;
  margin-top: 0.1em;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 2px rgba(103, 242, 226, 0.15);
  border: none;
  box-shadow: none;
}

.challenge-desc .tap-text {
  color: var(--primary-color);
  font-weight: 800;
  background-color: rgba(103, 242, 226, 0.1);
  padding: 0.2em 0.4em;
  border-radius: 0.3em;
  font-size: 1.09em;
  letter-spacing: 0.09em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.counter-and-meter-area {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}
.countdown-area {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.5rem;
}
.big-count {
  font-size: clamp(3.2rem, 10vw, 4.7rem);
  font-weight: 900;
  color: #1a2a36;
  letter-spacing: 0.08em;
  background: none;
  text-shadow: 0 1px 4px rgba(103, 242, 226, 0.3);
  animation: none;
}

@keyframes count-glow {
  0% { filter: brightness(1.1) drop-shadow(0 0 10px #67f2e2); }
  100% { filter: brightness(1.35) drop-shadow(0 0 20px #ffef8c); }
}
.count-total {
  font-size: 1.05rem;
  color: #1a2a36;
  font-weight: 900;
  margin-left: 0.18em;
  text-shadow: 0 1px 2px rgba(103, 242, 226, 0.2);
  background: none;
}

.remaining-area {
  font-size: 1.05rem;
  color: #1a2a36;
  background: none;
  border-radius: 1em;
  padding: 0.13em 0.7em;
  display: flex;
  align-items: center;
  gap: 0.2em;
  border: none;
  box-shadow: none;
  text-shadow: 0 1px 2px rgba(103, 242, 226, 0.15);
}

.remaining-label {
  color: #1a2a36;
  font-weight: 900;
  margin-right: 0.15em;
  text-shadow: 0 1px 2px rgba(103, 242, 226, 0.2);
  background: none;
}

.remaining-count {
  font-size: 1.15em;
  font-weight: 900;
  color: #ff5a5a;
  text-shadow: 0 1px 3px rgba(255, 90, 90, 0.2);
  background: none;
  animation: none;
}

@keyframes remain-glow {
  0% { filter: brightness(1.0) drop-shadow(0 0 6px #67f2e2); }
  100% { filter: brightness(1.3) drop-shadow(0 0 14px #ff5a5a); }
}
.remaining-unit {
  font-size: 1em;
  color: #ffef8c;
  text-shadow: none;
  background: none;
}

.challenge-subtitle {
  font-size: 1.09rem;
  color: #67f2e2;
  margin-bottom: 0.4rem;
  text-shadow: 0 1px 6px rgba(0,0,0,0.18);
}
.challenge-desc {
  font-size: 1.01rem;
  color: #fff;
  background: rgba(34,34,34,0.27);
  display: inline-block;
  padding: 0.24em 1.1em;
  border-radius: 1.2em;
  margin-top: 0.2em;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 6px rgba(0,0,0,0.13);
}
.challenge-desc .tap-text {
  color: #ff5a5a;
  font-weight: 700;
  font-size: 1.09em;
  letter-spacing: 0.09em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.counter-and-meter-area {
  margin-top: 0.5em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5em;
}
.countdown-area {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.5rem;
}
.big-count {
  font-size: clamp(2.5rem, 7vw, 3.7rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.08em;
  text-shadow: 0 3px 18px rgba(0,0,0,0.33), 0 0 2px #67f2e2;
  line-height: 1.1;
}
.count-total {
  font-size: 1.07rem;
  color: #67f2e2;
  font-weight: 700;
  margin-left: 0.2em;
  text-shadow: 0 1px 7px rgba(0,0,0,0.17);
}

.remaining-area {
  font-size: 1.1rem;
  color: #fff;
  text-shadow: 0 1px 5px rgba(0,0,0,0.17);
  background: rgba(34,34,34,0.18);
  border-radius: 1em;
  padding: 0.16em 0.9em;
  display: flex;
  align-items: center;
  gap: 0.2em;
}
.remaining-label {
  color: #67f2e2;
  font-weight: 700;
  margin-right: 0.2em;
}
.remaining-count {
  font-size: 1.18em;
  font-weight: 800;
  color: #ffef8c;
  text-shadow: 0 1px 8px rgba(0,0,0,0.22);
}
.remaining-unit {
  font-size: 1em;
}

.progress-meter {
  width: 100%;
  margin: 0.5em 0 0.2em 0;
  display: flex;
  justify-content: center;
}

.progress-bar-outer {
  width: 90%;
  height: 1.2em;
  background: rgba(255,255,255,0.17);
  border-radius: 0.7em;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.14);
}

.progress-bar-inner {
  background-color: var(--primary-color);
  height: 100%;
  width: 0%;
  transition: width 0.5s ease;
  background: linear-gradient(90deg, #ff5a5a 0%, #67f2e2 100%);
  background-clip: content-box;
  margin: 0 0 0.7em;
  transition: width 0.7s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 2px 8px rgba(255,90,90,0.13);
}

.tap-btn-area {
  margin-top: 0.7em;
  display: flex;
  justify-content: center;
}
.tap-btn {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ff5a5a 0%, #d82b2b 100%);
  box-shadow: 0 6px 24px rgba(255,90,90,0.22), 0 2px 8px rgba(0,0,0,0.13);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.12s, box-shadow 0.12s, background 0.18s;
  outline: none;
  position: relative;
  z-index: 2;
  user-select: none;
}
.motivational-message {
    color: var(--primary-color);
    font-size: 1em;
    font-weight: bold;
    text-align: center;
    margin: 10px 0;
    min-height: 1.5em;
    opacity: 0.8;
}
.tap-btn:active, .tap-btn:focus {
  transform: scale(0.96);
  box-shadow: 0 2px 8px rgba(255,90,90,0.13), 0 0px 2px rgba(0,0,0,0.13);
  background: linear-gradient(180deg, #d82b2b 0%, #ff5a5a 100%);
}
.tap-btn:hover {
  filter: brightness(1.05);
  box-shadow: 0 10px 32px rgba(255,90,90,0.28), 0 2px 8px rgba(0,0,0,0.18);
}

@media (max-width: 600px) {
  .event-challenge-inner {
    padding: 1.1rem 0.5rem 1.2rem 0.5rem;
    max-width: 98vw;
  }
  .egg-main-img {
    width: clamp(90px, 50vw, 140px);
  }
  .tap-btn {
    width: 64px;
    height: 64px;
    --button-secondary-text: #2c3e50;
    --button-secondary-hover-bg: #a8adb1;
    /* Specific Accent Colors */
    --accent-orange: #f39c12;
    --accent-orange-hover: #e67e22;
    --accent-green: #2ecc71;
    --accent-green-hover: #27ae60;
    --keyword-highlight-bg: var(--primary-color-light);
    --keyword-highlight-text: var(--primary-color-text);
    --modal-bg: rgba(0, 0, 0, 0.6);
    --modal-content-bg: var(--section-bg-color);
}

/* 基本スタイル */
body {
    font-family: 'Noto Sans JP', sans-serif;
    margin: 0;
    padding: 0;
    background-color: transparent;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-weight: 500; /* Slightly bolder font */
    padding-bottom: 60px; /* フッターの高さに応じて調整 */
}

header {
    background-color: var(--primary-color);
    color: var(--text-on-primary);
    padding: 1em;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header h1 a {
    color: var(--text-on-primary);
    text-decoration: none;
}

header nav#user-status {
    font-size: 0.9em;
}

header nav#user-status button {
    background-color: transparent;
    color: var(--text-on-primary);
    border: 1px solid var(--text-on-primary);
    padding: 0.5em 1em;
    margin-left: 0.5em;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

header nav#user-status button:hover {
    background-color: var(--text-on-primary);
    color: var(--primary-color);
}

main {
    flex: 1;
    padding: 1em 2em;
    max-width: 960px; /* コンテンツの最大幅 */
    margin: 0 auto; /* 中央寄せ */
    width: 100%;
    box-sizing: border-box;
}

footer {
    background-color: var(--primary-color); /* ヘッダーと同じプライマリーカラー */
    color: var(--primary-color-text);      /* プライマリーカラー上のテキスト色 */
    padding: 0; /* Navが占めるのでフッター自体のpaddingは0に */
    text-align: center;
    font-size: 0.9em;
    position: fixed; /* 画面下部に固定 */
    bottom: 0;
    left: 0;
    width: 100%;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1); /* 上方向に影 */
    z-index: 1000; /* 他の要素より手前に */
}

/* 新しいアプリフッターとナビゲーション */
footer.app-footer {
    background-color: var(--text-dark);
    color: var(--text-light);
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.05);
    padding-bottom: env(safe-area-inset-bottom);
}

.footer-navigation {
    display: flex;
    justify-content: space-around;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    background-color: var(--text-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 !important;
    -webkit-border-radius: 0 !important;
    -moz-border-radius: 0 !important;
    overflow: visible;
}

.nav-button {
    flex: 1;
    text-decoration: none;
    text-align: center;
    padding: 15px 8px;
    color: var(--text-light);
    transition: all var(--transition-normal);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-top: 3px solid transparent;
    border-radius: 0;
}

/* 絵文字なしのシンプルなナビゲーションデザイン - 角丸なし */

footer.app-footer {
    border-radius: 0 !important;
}

.footer-navigation {
    border-radius: 0 !important;
}

.nav-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-button.active {
    color: var(--primary-color);
    border-top: 3px solid var(--primary-color);
    font-weight: bold;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 0;
}

/* 古いスタイルは削除、新しいnav-buttonクラスに置き換えられました */

.footer-navigation .nav-button.active {
    background-color: var(--primary-color-text); /* アクティブなボタンの背景色を濃く */
    color: var(--primary-color);             /* アクティブなボタンの文字色をメインカラーに */
    font-weight: bold;
}

section {
    background-color: var(--section-bg-color);
    padding: 1.5em;
    margin-bottom: 1.5em;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.16);
    border: 1px solid var(--border-color);
}

section h2 {
    color: var(--text-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5em;
    margin-top: 0;
}

/* トップページ特有 */
.record-card {
    background-color: var(--section-bg-color);
    padding: 1em;
    margin-bottom: 0.5em;
    border-radius: 4px;
    border-left: 5px solid var(--primary-color);
}

#navigation-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2列のグリッド */
    gap: 1rem; /* ボタン間の間隔 */
    padding: 0.5rem;
}

.nav-button {
    background-color: var(--primary-color);
    color: #1a2a36;
    padding: 1.2em 1em;
    text-decoration: none;
    border-radius: 12px;
    margin: 0;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    font-size: 1.1em;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 8px rgba(var(--primary-color-rgb), 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    position: relative;
    overflow: hidden;
}

/* 卵の振動アニメーション */
@keyframes shake-egg-animation {
  0%, 100% {
    transform: translateX(0);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-3px);
  }
  20%, 40%, 60%, 80% {
    transform: translateX(3px);
  }
}

.egg-shake {
  animation: shake-egg-animation 0.3s ease-in-out;
}

.nav-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.15),
        rgba(255, 255, 255, 0.05)
    );
    opacity: 1;
    transition: opacity 0.3s ease;
}

.nav-button:hover {
    background-color: var(--button-primary-hover-bg);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(var(--primary-color-rgb), 0.25);
}

.nav-button:hover::before {
    opacity: 1;
}

.nav-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(var(--primary-color-rgb), 0.2);
}

/* スマートフォン向けのレスポンシブ対応 */
@media (max-width: 480px) {
    #navigation-buttons {
        grid-template-columns: 1fr; /* 1列に */
        gap: 0.8rem;
    }

    .nav-button {
        padding: 1em;
        min-height: 80px;
        font-size: 1em;
    }
}

#announcements ul {
    list-style-type: none;
    padding: 0;
}

#announcements li {
    padding: 0.5em 0;
    border-bottom: 1px solid #eee;
}

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

/* ガチャページ */
#gacha-section {
    text-align: center;
}

#gacha-button, #do-squat-button, .button-gacha-related {
    background-color: var(--accent-orange);
    color: var(--text-on-dark-bg);
    padding: 1em 2em;
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    cursor: pointer;
    margin-top: 1em;
    transition: background-color 0.2s ease-in-out;
}

#gacha-button:hover, #do-squat-button:hover, .button-gacha-related:hover {
    background-color: var(--accent-orange-hover);
}

#gacha-result img {
    max-width: 200px; /* 画像サイズ調整 */
    margin-top: 1em;
}

.btn-large:active {
    transform: translateY(2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) inset; /* 内側の影で沈み込む表現 */
}

/* ガチャボタンのローディング状態 */
#play-gacha-button.gacha-loading {
    /* 必要であれば背景色などを変更 */
    /* content: "お楽しみに..."; /* JSでテキスト変更するためCSSでは不要な場合も */
    cursor: wait; /* カーソルを待機状態に */
}

/* オプション：ローディングスピナー (簡易版) */
#play-gacha-button.gacha-loading::after {
    content: ' ..'; /* 点滅するドット */
    display: inline-block;
    animation: loadingDots 1s infinite steps(3, end);
}

@keyframes loadingDots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 80%, 100% { content: '...'; }
}


/* ガチャ結果画像の初期状態とアニメーション */
#gacha-result-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 1em;
    opacity: 0;
    transform: scale(0.8);
    visibility: hidden;
    transition: opacity 0.5s ease-out, transform 0.5s ease-out, visibility 0s linear 0.5s;
}

#gacha-result-image.gacha-image-reveal {
    opacity: 1;
    transform: scale(1);
    visibility: visible;
    transition-delay: 0s; /* 表示時は遅延なし */
}

/* よりリッチなアニメーションの例 (オプション) */
@keyframes fadeInScaleUp {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}


/* スタンプページ - カレンダー */
.calendar-container {
    background-color: #fff; /* section の背景色に合わせる */
    padding: 1.5em;
    margin-bottom: 1.5em;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    text-align: center; /* コントロールとグリッドを中央寄せ */
}

.calendar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1em;
}

.calendar-controls h2 {
    margin: 0;
    font-size: 1.2em;
    color: #333; /* section h2 と同様 */
    border-bottom: none; /* section h2 とは異なり、ここでは下線なし */
    padding-bottom: 0;
}

.calendar-controls button {
    background-color: #38b6ff; /* メインカラー */
    color: white;
    border: none;
    padding: 0.5em 1em;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.calendar-controls button:hover {
    background-color: #2a90d1; /* 少し暗い青 */
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr); /* 7列 */
    gap: 5px; /* セル間の隙間 */
    border: 1px solid #eee; /* グリッド全体の枠線 */
    padding: 5px;
    border-radius: 4px;
}

.calendar-header-cell, .calendar-day-cell {
    padding: 0.8em 0.5em;
    text-align: center;
    font-size: 0.9em;
    border-radius: 3px; /* セルの角を少し丸める */
}

.calendar-header-cell {
    background-color: #e9ecef; /* ヘッダー行の背景色 (薄いグレー) */
    font-weight: bold;
    color: #495057;
}

.calendar-day-cell {
    background-color: #f8f9fa; /* 日付セルの背景色 (ごく薄いグレー) */
    border: 1px solid #dee2e6; /* 日付セルの枠線 */
    min-height: 50px; /* セルの最小高さ */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* 日付番号を上に */
    align-items: center;
    position: relative; /* スタンプアイコンの配置のため */
}

.calendar-day-cell.empty {
    background-color: #fff; /* 空のセルは白 */
    border: 1px solid #f8f9fa; /* 枠線はさらに薄く */
}

.calendar-day-cell.today {
    background-color: #e7f5ff; /* 今日の日付 (薄い青、ヒーローセクションの背景色に近い) */
    font-weight: bold;
    border: 1px solid #38b6ff; /* メインカラーの枠線 */
    color: #38b6ff;
}

/* .calendar-day-cell.stamped {
    background-color: #ffe0b2; 
    
}

.calendar-day-cell.stamped::after {
    content: '\1F43B'; 
    
    
    
    
    
}
*/

.calendar-day-cell.has-stamp {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Center number and icon */
    padding-top: 2px; 
    padding-bottom: 2px;
}

/* クイックリンク用のスタンプアイコン */
.stamp-icon {
    /* 元の設定に戻す */
    max-width: 24px; 
    max-height: 24px;
    margin-top: 2px;
}

/* カレンダー用のスタンプアイコン */
.calendar-stamp-icon {
    max-width: 60px; /* スタンプサイズを大きく */
    max-height: 60px;
    margin-top: 0px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5; /* 日付より上に表示 */
}


/* Keyword Input and No Stream Area - Basic Layout */
.keyword-input-section, .no-stream-section {
    margin-top: 1.5em;
    padding: 1em;
    background-color: #f8f9fa; /* 少し区別するための背景色 */
    border-radius: 8px;
    text-align: center;
}

.keyword-input-section input[type="text"] {
    padding: 0.8em;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-right: 0.5em;
    font-size: 1em;
    width: calc(100% - 180px); /* Adjust width as needed */
    max-width: 300px;
}

.keyword-input-section button,
.no-stream-section button {
    padding: 0.8em 1.2em;
}

.keyword-highlight {
    font-weight: bold;
    color: #38b6ff;
}

.message-toast {
    margin-top: 0.5em;
    padding: 0.8em;
    border-radius: 4px;
    font-size: 0.9em;
    display: none; /* Initially hidden */
}

.message-toast.success-message {
    background-color: var(--accent-green); /* Green for success */
    color: var(--text-on-dark-bg);
    border: 1px solid #c3e6cb;
}

.info-message {
    background-color: #d1ecf1; /* Light blue background for info */
    color: #0c5460; /* Dark blue text for info */
    border-left: 5px solid #007bff; /* Blue left border for emphasis */
}

.message-toast.error-message {
    background-color: #f8d7da; /* Red for error */
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.login-prompt {
    text-align: center;
    padding: 2em;
    background-color: #e9ecef;
    border-radius: 8px;
}

.login-prompt p {
    margin-bottom: 1em;
}

.login-prompt button {
    margin: 0 0.5em;
}

/* ボタンの共通スタイル */
.button-primary {
    background-color: var(--button-primary-bg);
    color: var(--button-primary-text);
    border: none;
    padding: 0.75em 1.5em;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.button-primary:hover {
    background-color: var(--button-primary-hover-bg);
    color: var(--button-primary-hover-text);
}

.button-secondary {
    background-color: var(--button-secondary-bg);
    color: var(--button-secondary-text);
    border: none;
    padding: 0.75em 1.5em;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.button-secondary:hover {
    background-color: var(--button-secondary-hover-bg);
    color: var(--button-secondary-text);
}

/* Continuation Banner */
.continuation-banner {
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--primary-color); /* メインカラー */
    background-color: #e7f5ff; /* 薄い青 */
    padding: 0.8em;
    border-radius: 4px;
    margin-bottom: 1em;
}

.continuation-banner span {
    font-size: 1.5em; /* 数字を少し大きく */
}


/* YouTube Embed Area */
.youtube-embed-area {
    margin-top: 1em;
    padding: 1em;
    border: 1px dashed #ccc;
    border-radius: 4px;
}

#youtube-player {
    width: 100%;
    max-width: 560px; /* Standard 16:9 aspect ratio based on height */
    height: 315px; /* Adjust as needed */
    margin: 0 auto 1em auto; /* Center the player */
    background-color: #000; /* Placeholder background */
}

.self-train-keyword-display {
    margin-top: 1em;
    font-style: italic;
    color: #555;
}

#gacha-result-image.gacha-image-animate {
    visibility: visible; /* Make it visible for the animation */
    /* display: block; /* JavaScript側で制御推奨 */
    animation: fadeInScaleUp 0.6s ease-out forwards;
    /* アニメーションを使う場合、上記の opacity, transform, visibility, transition は不要になることも */
    /* visibility はアニメーション開始前に隠し、終了後に表示を維持するために依然として有用 */
}


#gacha-count-display {
    font-size: 1.5em;
    font-weight: bold;
    margin-top: 0.5em;
}

/* スタンプページ */
#calendar {
    /* カレンダーのスタイルは後でJavaScriptで生成 */
    min-height: 200px; /* 仮の高さ */
    border: 1px solid #ddd;
    padding: 1em;
    margin-bottom: 1em;
    text-align: center; /* 仮 */
}

.keyword-input input, #admin-password, #new-keyword, #announcement-title, #announcement-content {
    padding: 0.8em;
    margin-right: 0.5em;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
}

.keyword-input button, #no-stream-button, #self-training-stamp-button, #admin-login-button, #set-keyword-button, #post-announcement-button, #save-daily-record {
    padding: 0.8em 1.5em;
    background-color: #337ab7; /* ブルー系のボタン */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}

.keyword-input button:hover, #no-stream-button:hover, #self-training-stamp-button:hover, #admin-login-button:hover, #set-keyword-button:hover, #post-announcement-button:hover, #save-daily-record:hover {
    background-color: #286090;
}

/* マイページ */
#my-calendar {
    /* カレンダーのスタイル */
    min-height: 250px;
    border: 1px solid #ddd;
    padding: 1em;
    margin-bottom: 1em;
    text-align: center; /* 仮 */
}

#date-input-form label {
    display: inline-block;
    width: 100px;
    margin-bottom: 0.5em;
}
#date-input-form input[type="number"], #date-input-form textarea {
    width: calc(100% - 120px);
    padding: 0.5em;
    margin-bottom: 0.5em;
    border: 1px solid #ccc;
    border-radius: 4px;
}
#date-input-form textarea {
    height: 60px;
}

/* ランキングページ */
#ranking-list {
    list-style-type: none;
    padding: 0;
}

#ranking-list li {
    padding: 0.8em;
    border-bottom: 1px solid #eee;
    font-size: 1.1em;
}

#ranking-list li:nth-child(odd) {
    background-color: #f9f9f9;
}

#ranking-list .rank-1, #ranking-list .rank-2, #ranking-list .rank-3 {
    font-weight: bold;
}

#ranking-list .rank-1 {
    color: #d9534f; /* 赤系 */
    font-size: 1.5em; /* 少し大きく */
}

#ranking-list .rank-2 {
    color: #f0ad4e; /* オレンジ系 */
    font-size: 1.3em;
}

#ranking-list .rank-3 {
    color: #5cb85c; /* 緑系 */
    font-size: 1.2em;
}

#ranking-list span {
    display: inline-block;
    width: 50px; /* 順位表示の幅 */
    font-weight: bold;
}

/* ログイン促しメッセージ */
.login-prompt {
    background-color: #fff3cd;
    color: #856404;
    padding: 1em;
    border: 1px solid #ffeeba;
    border-radius: 4px;
    text-align: center;
    margin-bottom: 1em;
}

.login-prompt a {
    color: #007bff;
    text-decoration: underline;
}

/* 管理画面 */
#admin-login, #admin-panel section {
    margin-bottom: 2em;
}

/* レスポンシブ対応（簡易） */
@media (max-width: 768px) {
    main {
        padding: 1em;
    }
    #navigation-buttons {
        flex-direction: column;
    }
    .nav-button {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        box-sizing: border-box;
    }
    header nav#user-status button {
        display: block;
        margin: 0.5em auto;
    }
}

/* モーダルウィンドウのスタイル */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.modal-content {
    background-color: var(--modal-content-bg);
    margin: 10% auto; /* 10% from the top and centered */
    padding: 25px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    width: 80%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal h2 {
    margin-top: 0;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5em;
    margin-bottom: 1em;
}

.modal form div {
    margin-bottom: 1em;
}

.modal label {
    display: block;
    margin-bottom: 0.3em;
    color: #555;
    font-size: 0.9em;
}

.modal input[type="email"],
.modal input[type="password"] {
    width: calc(100% - 22px); /* padding + border considerations */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.modal button[type="submit"] {
    background-color: #38b6ff;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s;
}

.modal button[type="submit"]:hover {
    background-color: #B89B74;
}

.error-message {
    color: #dc3545; /* Bootstrap danger color */
    margin-top: 1em;
}



/* フッターナビゲーション スタイル (アプリ風) */
.footer-navigation {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff; /* 白背景 */
    border-top: 1px solid #e0e0e0; /* 上部に細い境界線 */
    box-shadow: 0 -1px 3px rgba(0,0,0,0.05); /* より繊細な影 */
    display: flex;
    justify-content: space-around;
    padding: 8px 0; /* パディング調整 */
    z-index: 1000;
}

/* メインコンテンツがフッターナビゲーションに隠れないように */
body {
    padding-bottom: 60px; /* フッターの高さに応じて調整 (以前より少し小さく) */
}

/* Success and Error Message Animations */
.message-toast {
    position: fixed; /* 画面上部などに固定表示 */
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 1em 1.5em;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -30px); /* 初期位置を少し上に */
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out, visibility 0s linear 0.3s;
}

.message-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    transition-delay: 0s;
}

#gacha-success-message.message-toast {
    background-color: #28a745; /* Bootstrap success color */
    color: white;
}

/* =================================== */
/* TOP Page Hero Section & New Buttons */
/* =================================== */

#hero {
    margin-bottom: 2em;
    text-align: center;
}

.hero-image {
    max-width: 400px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- New Button Styles --- */
.btn {
    display: inline-block;
    padding: 0.8em 1.8em;
    border: none;
    border-radius: 25px; /* 丸みのあるボタン */
    font-size: 1em;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.btn:hover {
    transform: translateY(-2px); /* ホバー時に少し浮き上がる */
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-primary {
    background-color: #38b6ff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: #D2B48C; /* 淡い茶色 */
    color: white;
}

.btn-secondary:hover {
    background-color: #B89B74;
}

/* Event Page Styles */
.event-page {
    background-image: url('../images/eventbgimg.png');
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;
    background-color: #f4f9fc;
}

#event-info {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 1.5em;
    margin: 1.5em 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

#event-info h3 {
    color: #2c3e50;
    border-bottom: 2px solid #67f2e2;
    padding-bottom: 0.5em;
    margin-bottom: 1em;
}

#event-info ul {
    list-style-type: none;
    padding: 0;
}

#event-info li {
    color: #5a6b7c;
    margin-bottom: 0.8em;
    position: relative;
    padding-left: 1.5em;
}

#event-info li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #67f2e2;
    font-weight: bold;
}

.challenge-container {
  background: #fff;
  border-radius: 16px;
  padding: 2em 1.2em 2.5em 1.2em;
  box-shadow: 0 4px 20px rgba(103,242,226,0.10);
  max-width: 430px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  border: 1.5px solid #67f2e2;
  z-index: 1;
}

.challenge-header {
    margin-bottom: 1.5em;
}

.challenge-header h3 {
  color: #1a2a36;
  font-size: 1.4em;
  margin-bottom: 0.2em;
  font-weight: 700;
  letter-spacing: 0.02em;
  position: relative;
  text-shadow: none;
} 

.challenge-header h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: #67f2e2;
    border-radius: 2px;
}

.challenge-header .challenge-subtitle {
  color: #67f2e2;
  font-size: 1em;
  margin-top: 0.2em;
  font-weight: 500;
  background: none;
  display: block;
  padding: 0;
  letter-spacing: 0.03em;
} 

.counter-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5em;
}

.count-display {
    margin-bottom: 1em;
}

.count-display .current-count {
    display: flex;
    align-items: baseline;
    gap: 0.5em;
}

.count-display .label {
    color: var(--primary-color-text);
    font-size: 0.9em;
}

.count-display {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 0.5em;
    margin: 1em 0;
}

.count-display .number {
  color: #1a2a36;
  font-size: 2.7em;
  font-weight: 700;
  margin: 0 0.1em;
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
  letter-spacing: 0.01em;
} 

.count-display .total {
  color: #67f2e2;
  font-size: 1.1em;
  font-weight: 600;
  margin-left: 0.3em;
  letter-spacing: 0.01em;
} 

.btn-challenge {
  background: #67f2e2;
  color: #1a2a36;
  border: none;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  font-size: 1.15em;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.1s;
  box-shadow: 0 2px 10px rgba(103,242,226,0.13);
  letter-spacing: 0.02em;
  margin: 0.6em auto 0.9em auto;
  text-transform: none;
}

.btn-challenge:hover {
  background: #59e0d0;
  color: #fff;
  box-shadow: 0 6px 16px rgba(103,242,226,0.18);
  transform: translateY(-2px) scale(1.03);
}

.btn-challenge:active {
  background: #59e0d0;
  color: #fff;
  box-shadow: 0 2px 6px rgba(103,242,226,0.10);
  transform: scale(0.98);
} 

.btn-challenge .button-icon {
  font-size: 2.1em;
  margin-bottom: 0.1em;
  display: block;
  text-shadow: none;
} 

.progress-container {
    margin-top: 2em;
}

.progress-bar {
  background-color: #e0fcf7;
  height: 18px;
  border-radius: 9px;
  position: relative;
  overflow: hidden;
  box-shadow: none;
  border: 1px solid #67f2e2;
} 

.progress {
  background: #67f2e2;
  height: 100%;
  width: 0%;
  border-radius: 8px;
  transition: width 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
} 

.progress-marker {
    position: absolute;
    top: 100%;
    color: var(--primary-color-text);
    font-size: 0.8em;
    opacity: 0.7;
    padding: 0.3em 0;
}

.progress-marker.start {
    left: 0;
}

.progress-marker.end {
    right: 0;
}

.progress-info {
  display: flex;
  justify-content: center;
  margin-top: 0.7em;
  align-items: center;
} 

.progress-text {
    color: #1a2a36;
    font-size: 0.98em;
    font-weight: 600;
    margin-top: 0.2em;
    letter-spacing: 0.01em;
}

.progress-text span {
    color: #67f2e2;
    font-weight: 700;
    margin: 0 0.3em;
    padding: 0.2em 0.5em;
    border-radius: 4px;
    display: inline-block;
}

.challenge-rewards {
    background-color: var(--primary-color-light);
    border-radius: 10px;
    padding: 1em;
    margin-top: 1.5em;
}

.challenge-rewards h4 {
    color: var(--primary-color-text);
    margin-bottom: 1em;
    font-size: 1.1em;
}

.challenge-rewards ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    justify-content: space-around;
}

.challenge-rewards li {
    font-size: 1.2em;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5em;
}

#event-challenge {
    padding: 2em 1em;
    text-align: center;
}

#event-challenge {
  background: transparent;
  border-radius: 14px;
  box-shadow: none;
  max-width: 420px;
  margin: 2.5em auto 2em auto;
  padding: 2em 1.2em 2em 1.2em;
  border: 1.5px solid #67f2e2;
}

#event-challenge h2 {
  color: #1a2a36;
  font-size: 1.25em;
  text-align: center;
  margin-bottom: 1.5em;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-bottom: none;
  background: none;
  position: relative;
  padding-bottom: 0;
}

/* 下線は削除、装飾最小限 */

.challenge-container {
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 0 auto;
  text-align: center;
}

.challenge-header h3 {
  color: #1a2a36;
  font-size: 1.1em;
  margin-bottom: 0.2em;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: none;
  text-shadow: none;
}

.challenge-header .challenge-subtitle {
  color: #67f2e2;
  font-size: 0.96em;
  margin-top: 0.1em;
  font-weight: 500;
  background: none;
  display: block;
  padding: 0;
}

.egg-container {
  margin: 0 auto 1.1em auto;
  max-width: 90px;
  position: relative;
}

.egg-container img {
  width: 100%;
  display: block;
}

.counter-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.2em;
}

.count-display {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.4em;
  margin: 0.8em 0 0.7em 0;
}

.count-display .number {
  color: #1a2a36;
  font-size: 2.2em;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.count-display .total {
  color: #67f2e2;
  font-size: 1em;
  font-weight: 600;
  margin-left: 0.2em;
}

.btn-challenge {
  background: #67f2e2;
  color: #1a2a36;
  border: none;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  font-size: 1em;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.1s;
  box-shadow: 0 1px 4px rgba(103,242,226,0.13);
  letter-spacing: 0.01em;
  margin: 0.4em auto 0.7em auto;
  text-transform: none;
  cursor: pointer;
  overflow: hidden;
}

.btn-challenge:hover {
  background: #59e0d0;
  color: #fff;
  box-shadow: 0 4px 10px rgba(103,242,226,0.16);
  transform: translateY(-1px) scale(1.03);
}

.btn-challenge .button-icon {
  font-size: 1.6em;
  margin-bottom: 0.08em;
  display: block;
}

.progress-container {
  margin-top: 1.2em;
  width: 100%;
}

.progress-bar {
  background-color: #e0fcf7;
  height: 10px;
  border-radius: 5px;
  position: relative;
  overflow: hidden;
  border: 1px solid #67f2e2;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.progress {
  background: #67f2e2;
  height: 100%;
  width: 0%;
  border-radius: 5px;
  transition: width 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.progress-info {
  display: flex;
  justify-content: center;
  margin-top: 0.5em;
  align-items: center;
}

.progress-text {
  color: #1a2a36;
  font-size: 0.98em;
  font-weight: 600;
  margin-top: 0.1em;
  letter-spacing: 0.01em;
}

.progress-text span {
  color: #67f2e2;
  font-weight: 700;
}

.egg-container {
  margin-bottom: 1.2em;
  max-width: 120px;
  margin: 0 auto 1.2em auto;
  position: relative;
  z-index: 1;
}

.egg-container::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 12px;
  background: radial-gradient(ellipse, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0) 70%);
  border-radius: 50%;
  z-index: -1;
} 

#challenge-egg {
    width: 100%;
    height: auto;
    transition: transform 0.1s ease;
}

#challenge-egg.shake {
    transform: rotate(-5deg);
}

.counter-container {
    margin: 2em 0;
}

.count-display {
    font-size: 1.6em;
    color: #fff;
    margin-bottom: 1em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: bold;
}

/* セクションの基本スタイル */
section {
    padding: 2em;
    border-radius: 8px;
    margin-bottom: 2em;
}

/* 通常ページのセクションスタイル */
body:not(.event-page) section {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* イベントページのセクションスタイル */
.event-page section {
    background: none;
    box-shadow: none;
}

.progress-container {
    max-width: 300px;
    margin: 2em auto;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
}

.progress {
    width: 0%;
    height: 100%;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.progress-text {
    margin-top: 0.8em;
    color: #fff;
    font-size: 1.2em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#count-button {
    font-size: 1.3em;
    padding: 1em 2em;
    border-radius: 50px;
    background: var(--primary-color);
    color: var(--primary-color-text);
    border: none;
    box-shadow: 0 4px 15px rgba(103, 242, 226, 0.4);
    transition: all 0.2s ease;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

#count-button:active {
    transform: scale(0.95);
}

/* Event Info Section */
#event-info {
    padding: 2em 1em;
    background-color: rgba(103, 242, 226, 0.1);
    border-radius: 12px;
    margin: 2em 0;
    text-align: center;
}

.event-page #event-info {
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
}

.event-content {
    max-width: 600px;
    margin: 0 auto;
}

#event-info h2 {
    color: var(--primary-color-text);
    font-size: 1.8em;
    margin-bottom: 1em;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 0.3em;
}

#event-info h3 {
    color: var(--primary-color-text);
    font-size: 1.4em;
    margin-bottom: 1em;
    font-weight: 600;
}

#event-info p {
    color: #4a5568;
    line-height: 1.8;
    font-size: 1.1em;
    margin-bottom: 2em;
}

#event-info .btn {
    font-size: 1.1em;
    padding: 0.8em 2em;
}

/* --- Adjust Existing Buttons --- */
/* Header buttons */
header nav#user-status button {
    /* .btn と .btn-secondary のスタイルを参考に調整 */
    background-color: transparent; /* 透明にし、枠線で表現も可 */
    color: white;
    border: 2px solid white;
    padding: 0.6em 1.2em; /* 少し調整 */
    margin-left: 0.8em;
    border-radius: 20px;
    font-weight: 700;
    transition: background-color 0.3s ease, color 0.3s ease;
}

header nav#user-status button:hover {
    background-color: white;
    color: #38b6ff; /* ホバー時にロゴの青色に */
}

.nav-button:hover {
    background-color: var(--button-primary-hover-bg);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(var(--primary-color-rgb), 0.25);
}

/* お知らせリストスタイル */
.announcement-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.announcement-item {
    border-bottom: 1px solid #e0e0e0;
    padding: 12px 0;
    margin-bottom: 8px;
}

.announcement-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.announcement-date {
    display: inline-block;
    font-size: 0.85rem;
    color: #666;
    margin-right: 10px;
}

.announcement-text {
    font-weight: bold;
    color: #333;
}

.announcement-detail {
    margin-top: 5px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #444;
}

/* 管理画面スタイル */
#admin-login {
    max-width: 500px;
    margin: 30px auto;
    text-align: center;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#admin-panel {
    max-width: 800px;
    margin: 30px auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#admin-panel section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

#admin-panel section:last-child {
    border-bottom: none;
}

#admin-panel h3 {
    margin-top: 0;
    color: #333;
    font-size: 1.2rem;
}

#admin-panel input[type="text"],
#admin-panel input[type="password"],
#admin-panel textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#admin-panel textarea {
    min-height: 120px;
}

#admin-panel button {
    background-color: var(--primary-color);
    color: #1a2a36;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

#admin-panel button:hover {
    background-color: var(--primary-dark);
    color: #fff;
}

.admin-announcement-list {
    margin-top: 20px;
}

#current-keyword {
    font-weight: bold;
    color: var(--primary-color);
}