body {
  margin: 0; /* ブラウザのデフォルトマージンをリセット */
  overscroll-behavior: none; /* ページ全体のオーバースクロールを無効化 */
}

/* 地図コンテナの基本スタイル */
/* 地図全体を覆い、その中に地図本体とオーバーレイ要素を配置するための親コンテナ */
/* PC: ヘッダー60px + フッター約50px = 110px */
#map-container {
  position: relative; /* 子要素の絶対配置の基準点とする */
  height: calc(100vh - 110px); /* ビューポートの高さからヘッダー+フッター分を引く */
  height: calc(100dvh - 110px); /* 動的ビューポート対応 */
  width: 100%; /* 親要素の幅全体を使用 */
  overflow: hidden; /* コンテナからのはみ出しを防ぐ */
  overscroll-behavior: none; /* オーバースクロールのバウンス効果を無効化 */
}

/* スマホ: ボトムナビの高さを考慮（フッターは非表示） */
@media (max-width: 768px) {
  #map-container {
    height: calc(100vh - 60px - env(safe-area-inset-bottom, 0)); /* ボトムナビ分を引く */
    height: calc(100dvh - 60px - env(safe-area-inset-bottom, 0));
  }
}

/* 地図本体のスタイル */
/* #map-container の中に地図を描画するための要素 */
#map {
  height: 100%; /* 親コンテナの高さ全体を使用 */
  width: 100%; /* 親コンテナの幅全体を使用 */
  touch-action: none; /* タッチ操作をマップに委ねる */
  overscroll-behavior: none; /* オーバースクロールのバウンス効果を無効化 */
}

/* マップコントロールボタン群 - 右端縦並び */
.map-control-buttons {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: var(--z-index-base);
}

/* コントロールボタン共通スタイル */
.map-control-btn {
  width: 44px;
  height: 44px;
  background: #fff;
  border: none;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  transition: all 0.2s ease;
}

.map-control-btn:hover {
  background: #f5f5f5;
  color: #1877f2;
  transform: scale(1.05);
}

.map-control-btn:active {
  transform: scale(0.95);
}

/* 現在地ボタン */
.map-location-btn.loading {
  pointer-events: none;
  color: #1877f2;
}

.map-location-btn.loading svg {
  animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* 予報ボタン */
.map-forecast-btn {
  color: #0ea5e9;
}

.map-forecast-btn:hover:not(.disabled) {
  color: #0284c7;
  background: #e0f2fe;
}

/* 予報ボタン無効状態（ズーム不足時） */
.map-forecast-btn.disabled {
  color: #9ca3af;
  background: #f3f4f6;
  cursor: not-allowed;
  opacity: 0.7;
}

.map-forecast-btn.disabled:hover {
  transform: none;
}

/* 今週の釣果ボタン */
.map-weekly-btn {
  color: #3b82f6;
}

.map-weekly-btn:hover {
  color: #2563eb;
  background: #dbeafe;
}

@media (max-width: 768px) {
  .map-control-buttons {
    right: 8px;
    gap: 8px;
  }

  .map-control-btn {
    width: 40px;
    height: 40px;
  }
}

.auth-container {
  position: absolute; /* 親要素（#map-container）を基準に絶対配置 */
  top: 15px; /* 上端からの配置距離 */
  right: 50px; /* 右端からの配置距離 */
  z-index: var(--z-index-base); /* 地図の他の要素よりも手前に表示 */
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Hamburger Menu */
/* ハンバーガーメニューなどの子要素を相対的に配置するためのコンテナ */
.relative {
  position: relative;
}

.hamburger-button {
  background-color: #ffffff;
  border: 1px solid #dddfe2;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hamburger-button svg {
  width: 24px;
  height: 24px;
  color: #333;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 5px); /* Button height + 5px gap */
  right: 0;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: var(--z-index-dropdown);
  min-width: 160px;
  overflow: hidden;
  padding: 8px 0;
}

.dropdown-item {
  display: block;
  padding: 10px 15px;
  color: #333;
  text-decoration: none;
  font-size: 16px;
  white-space: nowrap;
}

.dropdown-item:hover {
  background-color: #f0f2f5;
}

/* 要素を非表示にするユーティリティクラス */
.hidden {
  display: none;
}

/* ログアウトボタン自体のスタイル */
/* 視覚的に分かりやすく、クリック可能なボタンとしてデザイン */
.logout-button {
  background-color: #ffffff; /* 背景色を白に */
  color: #1877f2; /* 文字色を青に */
  border: 1px solid #dddfe2; /* 枠線を薄いグレーに */
  padding: 10px 15px; /* 内側の余白 */
  border-radius: 6px; /* 角を丸くする */
  text-decoration: none; /* 下線をなくす */
  font-size: 16px; /* フォントサイズ */
  font-weight: bold; /* フォントを太くする */
  cursor: pointer; /* カーソルをポインターに */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 軽い影を追加 */
  transition: all 0.3s; /* ホバー時の変化を滑らかに */
}

/* ログアウトボタンのホバー時のスタイル */
/* マウスオーバー時に背景色と枠線を変更してインタラクティブ性を示す */
.logout-button:hover {
  background-color: #f0f2f5; /* 背景色を薄いグレーに */
  border-color: #ccd0d5; /* 枠線を少し濃いグレーに */
}

/* ログインボタン自体のスタイル */
/* 視覚的に分かりやすく、クリック可能なボタンとしてデザイン */
.login-button {
  background-color: #ffffff; /* 背景色を白に */
  color: #1877f2; /* 文字色を青に */
  border: 1px solid #dddfe2; /* 枠線を薄いグレーに */
  padding: 10px 15px; /* 内側の余白 */
  border-radius: 6px; /* 角を丸くする */
  text-decoration: none; /* 下線をなくす */
  font-size: 16px; /* フォントサイズ */
  font-weight: bold; /* フォントを太くする */
  cursor: pointer; /* カーソルをポインターに */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 軽い影を追加 */
  transition: all 0.3s; /* ホバー時の変化を滑らかに */
}

/* ログインボタンのホバー時のスタイル */
/* マウスオーバー時に背景色と枠線を変更してインタラクティブ性を示す */
.login-button:hover {
  background-color: #f0f2f5; /* 背景色を薄いグレーに */
  border-color: #ccd0d5; /* 枠線を少し濃いグレーに */
}

/* 釣果登録ボタン自体のスタイル */
/* 視覚的に分かりやすく、主要な操作としてデザイン */
.register-catch-button {
  background-color: #42b72a; /* 目立つ緑色 */
  color: #ffffff; /* 白い文字 */
  border: none; /* 枠線なし */
  padding: 12px 20px; /* パディングを増やして大きく見せる */
  border-radius: 6px;
  text-decoration: none;
  font-size: 18px; /* フォントサイズを大きく */
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* 強めの影 */
  transition: all 0.3s;
  margin-right: 10px; /* 右側に少しマージンを追加 */
}

.register-catch-button:hover {
  background-color: #36a420; /* ホバーで少し暗く */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* auth-containerのレスポンシブ対応 */
 @media (max-width: 768px) {
  /* ログアウト・ログインボタンのコンテナを右上に配置 */
  .auth-container {
    position: absolute;
    top: 15px;
    right: 15px;
    left: auto;
    transform: none;
    width: auto;
    z-index: var(--z-index-base);
  }

  /* ログアウト/ログインボタンのスタイル調整 */
  .auth-container .logout-button,
  .auth-container .login-button {
    width: auto;
    margin-bottom: 0;
    margin-right: 0;
    padding: 8px 12px;
    font-size: 14px;
  }

  /* FAB (Floating Action Button) としての釣果登録ボタン */
  .register-catch-button {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #42b72a;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    z-index: calc(var(--z-index-base) + 1);
    font-size: 0; /* テキストを隠す */
    margin-right: 0;
    border: none;
    padding: 0; /* パディングをリセット */
  }

  .register-catch-button::before {
    content: '+';
    font-size: 36px;
    line-height: 1;
    font-weight: 300;
  }

  .register-catch-button:hover {
    background-color: #36a420;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  }
}

/* モーダル関連スタイル */

/* モーダル背景のスタイル */
/* 画面全体を覆い、モーダルの背景として半透明のオーバーレイを作成 */
.modal {
  position: fixed; /* 画面に固定 */
  z-index: var(--z-index-modal); /* 他の要素より前面に表示 */
  left: 0;
  top: 0;
  width: 100%; /* 全幅 */
  height: 100%; /* 全高 */
  overflow: auto; /* コンテンツがはみ出た場合にスクロールを有効にする */
  background-color: rgba(0,0,0,0.4); /* 半透明の黒い背景 */
  display: flex; /* Flexboxで中央配置を容易にする */
  align-items: center; /* 垂直方向の中央揃え */
  justify-content: center; /* 水平方向の中央揃え */
}

/* モーダルコンテンツボックスのスタイル */
/* モーダルの実際のコンテンツを保持するコンテナ */
.modal-content {
  background-color: #fefefe; /* 白い背景 */
  margin: auto; /* Flexboxにより中央配置されるため、autoは補助的な役割 */
  padding: 20px; /* 内側の余白 */
  border: 1px solid #888; /* 枠線 */
  width: 80%; /* 幅 */
  max-width: 500px; /* 最大幅 */
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19); /* 影 */
  animation-name: animatetop; /* アニメーションの指定 */
  animation-duration: 0.4s; /* アニメーションの時間 */
  border-radius: 8px; /* 角を丸くする */
  text-align: center; /* テキストを中央揃え */
}

/* モーダル表示アニメーションのキーフレーム */
/* モーダルが上からフェードインするアニメーション */
@keyframes animatetop {
  from {top: -300px; opacity: 0} /* 開始時：画面外上部に位置し、透明 */
  to {top: 0; opacity: 1} /* 終了時：画面上部に位置し、不透明 */
}

/* 閉じるボタンのスタイル */
/* モーダルを閉じるためのボタン */
.close-button {
  color: #aaa; /* 色 */
  float: right; /* 右にフロート */
  font-size: 28px; /* フォントサイズ */
  font-weight: bold; /* 太字 */
  cursor: pointer; /* カーソルをポインターに */
}

/* 閉じるボタンのホバー/フォーカス時のスタイル */
/* マウスオーバーまたはフォーカス時に色を変更 */
.close-button:hover,
.close-button:focus {
  color: black; /* 黒色に */
  text-decoration: none; /* 下線をなくす */
  cursor: pointer; /* カーソルをポインターに */
}

/* モーダル内のh2要素のスタイル */
/* モーダルの見出し */
.modal h2 {
  color: #333; /* 濃い灰色 */
  margin-bottom: 15px; /* 下部のマージン */
}

/* モーダル内のp要素のスタイル */
/* モーダルの段落テキスト */
.modal p {
  color: #666; /* 灰色 */
  line-height: 1.5; /* 行の高さ */
  margin-bottom: 10px; /* 下部のマージン */
}

/* =====================================
   ウェルカムモーダル - 青と白基調のデザイン
   ===================================== */

/* ウェルカムモーダルコンテンツ */
.welcome-modal-content {
  background: #ffffff;
  border: none;
  border-top: 4px solid #1877f2;
  max-height: 80vh;
  overflow-x: hidden;
  overflow-y: auto;
}

/* タイトル */
.welcome-title {
  color: #1877f2;
  font-size: 1.5em;
  margin-bottom: 10px;
}

/* 説明文 */
.welcome-description {
  color: #4a5568;
  font-size: 0.95em;
  margin-bottom: 15px;
}

/* 統計情報セクション */
.welcome-stats {
  margin: 15px 0;
  padding: 15px;
  background-color: #e8f4fd;
  border-radius: 8px;
  border: 1px solid #b8daff;
}

.welcome-stats h3 {
  color: #1877f2;
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1em;
}

/* 統計グリッド */
.welcome-stats-grid {
  display: flex;
  justify-content: space-around;
  gap: 10px;
  flex-wrap: wrap;
}

/* 統計項目 */
.welcome-stat-item {
  flex: 1;
  min-width: 100px;
  text-align: center;
  background-color: #ffffff;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(24, 119, 242, 0.1);
  border: 1px solid #e8f4fd;
}

.welcome-stat-item i {
  font-size: 1.5em;
  color: #1877f2;
  margin-bottom: 5px;
  display: block;
}

.welcome-stat-item p {
  margin: 0;
  font-size: 0.85em;
  color: #4a5568;
}

.welcome-stat-number {
  font-size: 1.3em;
  font-weight: bold;
  color: #1877f2;
  margin-top: 5px;
}

/* =====================================
   最新の釣果セクション
   ===================================== */

.welcome-latest-catches {
  margin-top: 20px;
  padding: 0;
  background: linear-gradient(135deg, #1877f2 0%, #0d5bbd 100%);
  border-radius: 12px;
  overflow: hidden;
}

.welcome-latest-catches h3 {
  color: #ffffff;
  margin: 0;
  padding: 12px 15px;
  font-size: 1em;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
}

.welcome-latest-catches h3 i {
  color: #ff6b35;
}

/* カードグリッド */
.latest-catches-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 0 10px 10px;
}

/* カード共通スタイル */
.catch-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  text-decoration: none;
  overflow: hidden;
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.25s ease;
}

.catch-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* 画像部分 */
.catch-card-image {
  position: relative;
  width: 100%;
  height: 90px;
  overflow: hidden;
  background-color: #e8f4fd;
}

.catch-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.catch-card:hover .catch-card-image img {
  transform: scale(1.1);
}

/* 魚種バッジ */
.catch-card-badge {
  position: absolute;
  bottom: 6px;
  left: 6px;
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.7em;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  max-width: calc(100% - 12px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* カードボディ */
.catch-card-body {
  padding: 8px;
  background-color: #ffffff;
}

.catch-card-user {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 4px;
}

.catch-card-user i {
  color: #1877f2;
  font-size: 0.9em;
}

.catch-card-user span {
  color: #1a202c;
  font-size: 0.8em;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.catch-card-meta {
  display: flex;
  align-items: center;
  gap: 4px;
}

.catch-card-meta i {
  color: #718096;
  font-size: 0.7em;
}

.catch-card-meta span {
  color: #718096;
  font-size: 0.7em;
}

/* ヒントテキスト */
.welcome-latest-catches .latest-catches-hint {
  margin: 0;
  padding: 10px 15px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff !important;
  font-size: 0.8em;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.latest-catches-hint i {
  animation: bounce 1.5s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* モーダル閉じるボタン - 青色テーマ */
.welcome-modal-content .close-button {
  color: #1877f2;
}

.welcome-modal-content .close-button:hover,
.welcome-modal-content .close-button:focus {
  color: #0d5bbd;
}

/* スマホ向けレスポンシブ */
@media (max-width: 480px) {
  .welcome-modal-content {
    padding: 15px;
    width: 90%;
    max-height: 85vh;
  }

  .welcome-title {
    font-size: 1.3em;
  }

  .welcome-stats-grid {
    flex-direction: column;
  }

  .welcome-stat-item {
    min-width: auto;
  }

  .latest-catches-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 0 8px 8px;
  }

  .catch-card-image {
    height: 70px;
  }

  .catch-card-body {
    padding: 6px;
  }

  .catch-card-user span {
    font-size: 0.7em;
  }

  .catch-card-meta {
    display: none;
  }

  .catch-card-badge {
    font-size: 0.6em;
    padding: 2px 6px;
  }

  .latest-catches-hint {
    font-size: 0.75em;
    padding: 8px 10px;
  }
}

/* ====================================
   ウェルカムモーダル カルーセル
   ==================================== */

/* カルーセルラッパー（オーバーフロー制御） */
.welcome-carousel-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
  background: #ffffff;
}

/* カルーセルコンテナ */
.welcome-carousel {
  display: flex;
  transition: transform 0.3s ease-out;
  background: #ffffff;
}

/* スライド */
.welcome-slide {
  flex: 0 0 100%;
  min-width: 100%;
  box-sizing: border-box;
  background: #ffffff;
}

/* ページネーションドット */
.welcome-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px 0 8px;
}

.welcome-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background-color: #cbd5e1;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.welcome-dot:hover {
  background-color: #94a3b8;
}

.welcome-dot.active {
  background-color: #1877f2;
  transform: scale(1.2);
}

/* スワイプヒント */
.welcome-swipe-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 0;
  color: #94a3b8;
  font-size: 0.8em;
  animation: swipeHintPulse 2s ease-in-out infinite;
}

.welcome-swipe-hint i {
  animation: swipeHintMove 2s ease-in-out infinite;
}

@keyframes swipeHintPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

@keyframes swipeHintMove {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* アクセスチャートセクション */
.welcome-access-chart {
  margin: 15px 0;
  padding: 15px;
  background-color: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

/* チャートコンテナ */
.access-chart-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  height: 150px;
  padding: 10px 5px 0;
  gap: 6px;
}

/* バーコンテナ */
.access-bar-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

/* バー */
.access-bar {
  width: 100%;
  max-width: 40px;
  background: linear-gradient(180deg, #3b82f6 0%, #60a5fa 100%);
  border-radius: 4px 4px 0 0;
  min-height: 4px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 6px;
  margin-top: auto;
  transition: height 0.3s ease;
}

/* バー上の数値 */
.access-bar-count {
  font-size: 0.6em;
  color: white;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* 日付ラベル */
.access-bar-label {
  font-size: 0.7em;
  color: #64748b;
  margin-top: 6px;
  white-space: nowrap;
}

/* チャート凡例 */
.access-chart-legend {
  display: flex;
  justify-content: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
}

.access-chart-legend-item {
  font-size: 0.75em;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 4px;
}

.access-chart-legend-item i {
  color: #3b82f6;
}

/* データなし表示 */
.chart-no-data {
  text-align: center;
  color: #94a3b8;
  padding: 40px 0;
  font-size: 0.9em;
}

/* アクセス概要 */
.access-stats-summary {
  margin-top: 15px;
}

.access-stats-summary h3 {
  color: #1877f2;
}

/* カルーセル用レスポンシブ */
@media (max-width: 480px) {
  .access-chart-container {
    height: 120px;
  }

  .access-bar-count {
    font-size: 0.5em;
  }

  .access-bar-label {
    font-size: 0.6em;
  }

  .welcome-pagination {
    padding: 8px 0 4px;
  }

  .welcome-swipe-hint {
    font-size: 0.7em;
    padding: 4px 0;
  }
}

/* ====================================
   スライド3: 基本機能紹介（グリッドレイアウト）
   ==================================== */

/* タップヒント */
.feature-tap-hint {
  font-size: 0.8em;
  color: #94a3b8;
  margin-bottom: 10px;
}

.feature-tap-hint i {
  margin-right: 4px;
  animation: tapHint 1.5s ease-in-out infinite;
}

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

/* 機能カードグリッドコンテナ */
.welcome-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 15px 0;
}

/* フリップカードコンテナ */
.feature-flip-card {
  perspective: 1000px;
  height: 160px;
  cursor: pointer;
}

.feature-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  /* 3D変換時のテキストレンダリング改善 */
  -webkit-font-smoothing: antialiased;
  will-change: transform;
}

/* コンテンツ要素の3D変換対応（チラつき防止） */
.feature-flip-inner h4,
.feature-flip-inner p,
.feature-flip-inner svg,
.feature-flip-inner .feature-icon-compact,
.feature-flip-inner .feature-back-content {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.feature-flip-card.flipped .feature-flip-inner {
  transform: rotateY(180deg);
}

/* 表面・裏面共通 */
.feature-card-front,
.feature-card-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 12px;
  overflow: hidden;
  box-sizing: border-box;
  /* GPUアクセラレーションとテキストレンダリング最適化 */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 表面 */
.feature-card-front {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px 8px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* 裏面 */
.feature-card-back {
  transform: rotateY(180deg) translateZ(0);
  -webkit-transform: rotateY(180deg) translateZ(0);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.feature-back-content {
  text-align: center;
  color: #fff;
}

.feature-back-content i {
  font-size: 1.8em;
  margin-bottom: 8px;
  display: block;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.feature-back-content p {
  font-size: 0.72em;
  line-height: 1.35;
  margin: 0;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

/* 裏面のカラー別スタイル */
.feature-card-back.feature-card-post {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #fff;
}

.feature-card-back.feature-card-map {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
}

.feature-card-back.feature-card-ai {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: #fff;
}

.feature-card-back.feature-card-checkin {
  background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
  color: #fff;
}

.feature-card-back.feature-card-zukan {
  background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
  color: #fff;
}

.feature-card-back.feature-card-browse {
  background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
  color: #fff;
}

/* コンパクト機能カード（表面用） */
.feature-card-compact {
  position: relative;
}

/* 上部のカラーバー */
.feature-card-front::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 12px 12px 0 0;
}

/* コンパクトアイコン */
.feature-icon-compact {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4em;
  color: #ffffff;
  margin-bottom: 12px;
  background: #64748b;
  position: relative;
  z-index: 1;
}

.feature-icon-compact i,
.feature-icon-compact svg {
  color: #ffffff;
  stroke: #ffffff;
  position: relative;
  z-index: 2;
}

/* コンパクトカードのテキスト */
.feature-card-compact h4 {
  margin: 0 0 6px 0;
  font-size: 1em;
  font-weight: 700;
  color: #1a202c;
}

.feature-card-compact p {
  margin: 0;
  font-size: 0.8em;
  color: #64748b;
  line-height: 1.3;
}

/* 各機能カードの個別カラー */

/* 投稿機能 - オレンジ */
.feature-card-front.feature-card-post {
  background: linear-gradient(135deg, #fff7ed 0%, #ffffff 100%);
}

.feature-card-front.feature-card-post::after {
  background: linear-gradient(90deg, #f97316 0%, #ea580c 100%);
}

.feature-card-front.feature-card-post .feature-icon-compact {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.35);
}

.feature-card-front.feature-card-post .feature-icon-compact i {
  color: #fff;
}

/* マップ機能 - 青 */
.feature-card-front.feature-card-map {
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
}

.feature-card-front.feature-card-map::after {
  background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
}

.feature-card-front.feature-card-map .feature-icon-compact {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

.feature-card-front.feature-card-map .feature-icon-compact i {
  color: #fff;
}

/* チェックイン機能 - ピンク */
.feature-card-front.feature-card-checkin {
  background: linear-gradient(135deg, #fdf2f8 0%, #ffffff 100%);
}

.feature-card-front.feature-card-checkin::after {
  background: linear-gradient(90deg, #ec4899 0%, #db2777 100%);
}

.feature-card-front.feature-card-checkin .feature-icon-compact {
  background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.35);
}

.feature-card-front.feature-card-checkin .feature-icon-compact i {
  color: #fff;
}

/* 図鑑機能 - ゴールド */
.feature-card-front.feature-card-zukan {
  background: linear-gradient(135deg, #fefce8 0%, #ffffff 100%);
}

.feature-card-front.feature-card-zukan::after {
  background: linear-gradient(90deg, #eab308 0%, #ca8a04 100%);
}

.feature-card-front.feature-card-zukan .feature-icon-compact {
  background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
  box-shadow: 0 4px 12px rgba(234, 179, 8, 0.35);
}

.feature-card-front.feature-card-zukan .feature-icon-compact i {
  color: #fff;
}

/* CTA セクション */
.welcome-cta {
  margin-top: 20px;
  padding: 16px;
  background: linear-gradient(135deg, #1877f2 0%, #0d5bbd 100%);
  border-radius: 12px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.welcome-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 70%
  );
  animation: shine 3s infinite;
}

@keyframes shine {
  0% {
    transform: translateX(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) rotate(45deg);
  }
}

.welcome-slide .welcome-cta .cta-text,
.welcome-slide .welcome-cta .cta-button {
  margin: 0;
  color: #fff;
  font-size: 1em;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  z-index: 1;
  text-decoration: none;
}

.cta-text i,
.cta-button i {
  animation: pointUp 1.5s ease-in-out infinite;
}

@keyframes pointUp {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

/* スマホ向けレスポンシブ - 機能紹介スライド */
@media (max-width: 480px) {
  .feature-tap-hint {
    font-size: 0.75em;
    margin-bottom: 8px;
  }

  .welcome-features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 12px 0;
  }

  .feature-flip-card {
    height: 140px;
  }

  .feature-card-front {
    padding: 12px 8px;
  }

  .feature-icon-compact {
    width: 42px;
    height: 42px;
    font-size: 1.1em;
    margin-bottom: 10px;
  }

  .feature-card-compact h4 {
    font-size: 0.9em;
  }

  .feature-card-compact p {
    font-size: 0.7em;
  }

  .feature-card-back {
    padding: 10px;
  }

  .feature-back-content svg {
    width: 24px;
    height: 24px;
    margin-bottom: 6px;
  }

  .feature-back-content p {
    font-size: 0.65em;
    line-height: 1.3;
  }

  .welcome-cta {
    margin-top: 12px;
    padding: 12px;
  }

  .cta-text,
  .cta-button {
    font-size: 0.85em;
  }
}

/* ====================================
   マーカーInfoWindow（マーカータップ後の表示）
   ==================================== */

/* Google Maps InfoWindowのデフォルトスタイルを調整 */
/* 閉じるボタンを画像の上に配置 */
.gm-style-iw-chr {
  position: absolute !important;
  top: 8px !important;
  right: 8px !important;
  z-index: 10 !important;
  height: auto !important;
}

/* 閉じるボタンのスタイル調整 */
.gm-style-iw-chr button.gm-ui-hover-effect {
  width: 32px !important;
  height: 32px !important;
  background: rgba(255, 255, 255, 0.95) !important;
  border-radius: 50% !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
  opacity: 1 !important;
  transition: all 0.2s ease !important;
}

.gm-style-iw-chr button.gm-ui-hover-effect:hover {
  background: #ffffff !important;
  transform: scale(1.1) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
}

/* 閉じるボタンのアイコンサイズ調整 */
.gm-style-iw-chr button.gm-ui-hover-effect > span {
  width: 18px !important;
  height: 18px !important;
  margin: 7px !important;
}

/* InfoWindowのコンテナ背景を透明に */
.gm-style .gm-style-iw-c {
  padding: 0 !important;
  border-radius: 16px !important;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35), 0 4px 16px rgba(0, 0, 0, 0.2) !important;
}

/* InfoWindow内部のラッパー */
.gm-style .gm-style-iw-d {
  overflow: visible !important;
  max-height: none !important;
}

/* InfoWindowの矢印を調整 */
.gm-style .gm-style-iw-tc::after {
  background: #ffffff !important;
}

/* InfoWindowコンテナ */
.marker-info-window {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  width: 280px;
  color: #333;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
}

/* 画像コンテナ */
.marker-info-image {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.marker-info-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.marker-info-image:hover img {
  transform: scale(1.05);
}

/* 画像がない場合のプレースホルダー */
.marker-info-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.marker-info-image-placeholder svg {
  width: 64px;
  height: 64px;
  color: #0ea5e9;
  opacity: 0.6;
}

/* 魚名バッジ（画像上にオーバーレイ） */
.marker-info-fish-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.marker-info-fish-name {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.95) 0%, rgba(37, 99, 235, 0.95) 100%);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 8px 14px;
  border-radius: 24px;
  font-size: 1em;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  max-width: calc(100% - 16px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* コンテンツ部分 */
.marker-info-content {
  padding: 16px;
}

/* 計測データグリッド */
.marker-info-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.marker-info-stat {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.marker-info-stat:hover {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border-color: #cbd5e1;
}

.marker-info-stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.marker-info-stat-icon svg {
  width: 16px;
  height: 16px;
  color: #64748b;
}

.marker-info-stat-label {
  font-size: 0.65em;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.marker-info-stat-value {
  font-size: 1.1em;
  font-weight: 700;
  color: #1e293b;
}

.marker-info-stat-value.has-value {
  color: #0284c7;
}

/* コメントセクション */
.marker-info-comment {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 14px;
  border-left: 3px solid #f59e0b;
}

.marker-info-comment-text {
  margin: 0;
  font-size: 0.9em;
  line-height: 1.5;
  color: #78350f;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* フッター（ユーザー・時間） */
.marker-info-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.marker-info-user {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.marker-info-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.marker-info-user-avatar svg {
  width: 18px;
  height: 18px;
}

/* ユーザーアバター画像 */
.marker-info-user-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* フォールバック用（画像読み込み失敗時） */
.marker-info-user-avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.marker-info-user-avatar-fallback svg {
  width: 18px;
  height: 18px;
}

.marker-info-user-name {
  color: #1e293b;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.marker-info-user-name:hover {
  color: #2563eb;
}

.marker-info-time {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #94a3b8;
  font-size: 0.75em;
  flex-shrink: 0;
}

.marker-info-time svg {
  width: 12px;
  height: 12px;
}

/* スマホ向けレスポンシブ */
@media (max-width: 480px) {
  .marker-info-window {
    width: 260px;
    border-radius: 14px;
  }

  .marker-info-image {
    height: 150px;
  }

  .marker-info-fish-name {
    font-size: 0.9em;
    padding: 6px 12px;
  }

  .marker-info-content {
    padding: 12px;
  }

  .marker-info-stats {
    gap: 8px;
    margin-bottom: 12px;
  }

  .marker-info-stat {
    padding: 10px 8px;
    border-radius: 10px;
  }

  .marker-info-stat-value {
    font-size: 1em;
  }

  .marker-info-comment {
    padding: 10px;
    margin-bottom: 12px;
  }

  .marker-info-comment-text {
    font-size: 0.85em;
  }

  .marker-info-footer {
    padding-top: 10px;
  }

  .marker-info-user-avatar {
    width: 24px;
    height: 24px;
  }

  .marker-info-user-avatar svg,
  .marker-info-user-avatar-fallback svg {
    width: 16px;
    height: 16px;
  }
}

/* ====================================
   今週の釣果モーダル（長押しで表示）
   ==================================== */
.weekly-fish-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-index-modal, 1000);
  padding: 20px;
}

.weekly-fish-modal.hidden {
  display: none;
}

.weekly-fish-modal-content {
  background: white;
  border-radius: 16px;
  max-width: 400px;
  width: 100%;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  animation: modalSlideUp 0.3s ease-out;
}

@keyframes modalSlideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.weekly-fish-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
}

.weekly-fish-modal-header h3 {
  margin: 0;
  font-size: 1.1em;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.weekly-fish-modal-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 1.5em;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.weekly-fish-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.weekly-fish-modal-body {
  padding: 20px;
  max-height: 60vh;
  overflow-y: auto;
  overflow-x: hidden;
}

.weekly-fish-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.weekly-fish-card {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.weekly-fish-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.weekly-fish-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  color: white;
}

.weekly-fish-name {
  font-size: 1.1em;
  font-weight: 600;
}

.weekly-fish-count {
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.85em;
  font-weight: 500;
}

.weekly-fish-card-content {
  display: flex;
  gap: 12px;
}

.weekly-fish-card-body {
  flex: 1;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.weekly-fish-image-link {
  display: block;
  flex-shrink: 0;
  text-decoration: none;
}

.weekly-fish-image {
  position: relative;
  width: 100px;
  height: 100%;
  min-height: 100px;
  overflow: hidden;
  background-color: #e2e8f0;
}

.weekly-fish-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.weekly-fish-image-link:hover .weekly-fish-image img {
  transform: scale(1.1);
}

.weekly-fish-image-user {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 4px 6px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: white;
  font-size: 0.7em;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.weekly-fish-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #475569;
  font-size: 0.9em;
}

.weekly-fish-stat i {
  width: 16px;
  color: #0ea5e9;
  text-align: center;
}

/* 時間帯アイコン */
.weekly-fish-time-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-left: auto;
}

.weekly-fish-time-icon.morning {
  color: #FFC107; /* 朝: アンバー */
}

.weekly-fish-time-icon.day {
  color: #2196F3; /* 昼: ブルー */
}

.weekly-fish-time-icon.night {
  color: #3F51B5; /* 夜: インディゴ */
}

.weekly-fish-stat-label {
  color: #64748b;
  min-width: 50px;
}

.weekly-fish-stat-value {
  color: #1e293b;
  font-weight: 500;
}

.weekly-fish-max {
  color: #f59e0b;
  font-size: 0.85em;
  margin-left: 4px;
}

.weekly-fish-empty {
  text-align: center;
  color: #9ca3af;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.weekly-fish-empty-icon {
  width: 64px;
  height: 64px;
  opacity: 0.6;
}

.weekly-fish-empty p {
  margin: 0;
  font-size: 0.95em;
  color: #6b7280;
}

/* スマホ向けスタイル */
@media (max-width: 480px) {
  .weekly-fish-modal {
    padding: 10px;
  }

  .weekly-fish-modal-content {
    max-height: 70vh;
  }

  .weekly-fish-modal-header {
    padding: 14px 16px;
  }

  .weekly-fish-modal-header h3 {
    font-size: 1em;
  }

  .weekly-fish-modal-body {
    padding: 12px;
  }

  .weekly-fish-list {
    gap: 10px;
  }

  .weekly-fish-card-header {
    padding: 10px 12px;
  }

  .weekly-fish-name {
    font-size: 1em;
  }

  .weekly-fish-count {
    font-size: 0.8em;
    padding: 3px 8px;
  }

  .weekly-fish-card-content {
    gap: 8px;
  }

  .weekly-fish-card-body {
    padding: 10px 12px;
    gap: 6px;
  }

  .weekly-fish-image {
    width: 80px;
    min-height: 80px;
  }

  .weekly-fish-stat {
    font-size: 0.85em;
  }

  .weekly-fish-stat-label {
    min-width: 45px;
  }
}

/* ====================================
   今週の釣果モーダル - 案3レイアウト
   ==================================== */

/* インフォメーション（数秒後に自動で消える） */
.weekly-fish-info {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 0.8em;
  color: #92400e;
  animation: infoFadeOut 0.5s ease-out 3s forwards;
}

.weekly-fish-info i {
  color: #f59e0b;
  flex-shrink: 0;
}

@keyframes infoFadeOut {
  0% {
    opacity: 1;
    max-height: 50px;
    padding: 10px 12px;
    margin-bottom: 12px;
  }
  50% {
    opacity: 0;
    max-height: 50px;
    padding: 10px 12px;
    margin-bottom: 12px;
  }
  100% {
    opacity: 0;
    max-height: 0;
    padding: 0 12px;
    margin-bottom: 0;
    border-width: 0;
    overflow: hidden;
  }
}

/* サマリー統計カード */
.weekly-fish-summary {
  display: flex;
  justify-content: space-around;
  gap: 8px;
  padding: 16px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-radius: 12px;
  margin-bottom: 12px;
  border: 1px solid #bae6fd;
}

/* メインタブ（魚種別/ユーザー別） */
.weekly-fish-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 10px;
}

.weekly-fish-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  font-size: 0.85em;
  font-weight: 600;
  color: #64748b;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.weekly-fish-tab:hover {
  color: #334155;
  background: rgba(255, 255, 255, 0.5);
}

.weekly-fish-tab.active {
  color: #0284c7;
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.weekly-fish-tab i {
  font-size: 0.95em;
}

/* タブコンテンツ */
.weekly-fish-tab-content {
  display: none;
  opacity: 0;
}

.weekly-fish-tab-content.active {
  display: block;
  opacity: 1;
}

/* ユーザー名リンク */
.weekly-fish-compact-name-link {
  color: #1e293b;
  text-decoration: none;
  transition: color 0.2s;
}

.weekly-fish-compact-name-link:hover {
  color: #0284c7;
  text-decoration: underline;
}

.weekly-fish-summary-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.weekly-fish-summary-item i {
  font-size: 1.2em;
  color: #0284c7;
}

.weekly-fish-summary-value {
  font-size: 1.5em;
  font-weight: 700;
  color: #0369a1;
  line-height: 1;
}

.weekly-fish-summary-label {
  font-size: 0.75em;
  color: #64748b;
  font-weight: 500;
}

/* ソートヘッダー */
.weekly-fish-sort-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  margin-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}

.weekly-fish-sort-title {
  font-size: 0.9em;
  font-weight: 600;
  color: #334155;
}

.weekly-fish-sort-buttons {
  display: flex;
  gap: 4px;
}

.weekly-fish-sort-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  font-size: 0.75em;
  font-weight: 500;
  color: #64748b;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.weekly-fish-sort-btn:hover {
  background: #e2e8f0;
  color: #334155;
}

.weekly-fish-sort-btn.active {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border-color: transparent;
}

.weekly-fish-sort-btn i {
  font-size: 0.9em;
}

/* コンパクトな魚リスト */
.weekly-fish-compact-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.weekly-fish-compact-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  grid-template-rows: auto auto;
  gap: 0 12px;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  transition: background 0.2s ease, border-color 0.2s ease;
  align-items: center;
}

.weekly-fish-compact-item:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

/* 画像（左側、2行にまたがる） */
.weekly-fish-compact-image-link,
.weekly-fish-compact-image-placeholder {
  grid-row: 1 / 3;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.weekly-fish-compact-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s;
}

.weekly-fish-compact-image-link:hover .weekly-fish-compact-image {
  transform: scale(1.1);
}

.weekly-fish-compact-image-placeholder {
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.weekly-fish-compact-image-placeholder i {
  color: #0284c7;
  font-size: 1.2em;
}

/* 魚情報（中央） */
.weekly-fish-compact-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.weekly-fish-compact-name {
  font-size: 0.95em;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.weekly-fish-compact-details {
  display: flex;
  gap: 8px;
  font-size: 0.75em;
  color: #64748b;
}

.weekly-fish-compact-size::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #0ea5e9;
  border-radius: 2px;
  margin-right: 4px;
  vertical-align: middle;
}

.weekly-fish-compact-region::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #f59e0b;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}

/* 釣数（右側） */
.weekly-fish-compact-count {
  display: flex;
  align-items: baseline;
  gap: 2px;
  justify-self: end;
}

.weekly-fish-compact-count-number {
  font-size: 1.3em;
  font-weight: 700;
  color: #0284c7;
  line-height: 1;
}

.weekly-fish-compact-count-label {
  font-size: 0.7em;
  color: #64748b;
  font-weight: 500;
}

/* プログレスバー（下部、全幅） */
.weekly-fish-compact-bar-container {
  grid-column: 2 / 4;
  height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
  overflow: hidden;
  margin-top: 4px;
}

.weekly-fish-compact-bar {
  height: 100%;
  background: linear-gradient(90deg, #0ea5e9 0%, #0284c7 100%);
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* スマホ向けスタイル - 案3レイアウト */
@media (max-width: 480px) {
  .weekly-fish-summary {
    padding: 12px 8px;
    gap: 4px;
  }

  .weekly-fish-summary-value {
    font-size: 1.3em;
  }

  .weekly-fish-summary-label {
    font-size: 0.7em;
  }

  .weekly-fish-sort-header {
    padding: 6px 0;
    margin-bottom: 10px;
  }

  .weekly-fish-sort-btn {
    padding: 5px 8px;
    font-size: 0.7em;
  }

  .weekly-fish-compact-item {
    grid-template-columns: 40px 1fr auto;
    gap: 0 10px;
    padding: 8px 10px;
  }

  .weekly-fish-compact-image-link,
  .weekly-fish-compact-image-placeholder {
    width: 40px;
    height: 40px;
  }

  .weekly-fish-compact-name {
    font-size: 0.9em;
  }

  .weekly-fish-compact-details {
    font-size: 0.7em;
  }

  .weekly-fish-compact-count-number {
    font-size: 1.1em;
  }
}

/* ====================================
   週間モーダル - スライド機能
   ==================================== */

.weekly-modal-slides-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.weekly-modal-slides {
  display: flex;
  transition: transform 0.3s ease-out;
}

.weekly-modal-slide {
  flex: 0 0 100%;
  min-width: 100%;
  overflow: hidden;
}

/* ページネーション */
.weekly-modal-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px 0 16px;
  background: white;
  border-top: 1px solid #e2e8f0;
}

.weekly-modal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background-color: #cbd5e1;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}

.weekly-modal-dot:hover {
  background-color: #94a3b8;
}

.weekly-modal-dot.active {
  background-color: #3b82f6;
  transform: scale(1.2);
}

/* サポータースライド専用スタイル */
.supporter-slide-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  overflow: hidden;
}

.supporter-slide-content {
  text-align: center;
  padding: 10px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.supporter-slide-icon {
  margin-bottom: 16px;
}

.supporter-slide-icon i {
  font-size: 2.5em;
  color: #ef4444;
  animation: heartbeat 1.5s ease-in-out infinite;
}

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

.supporter-slide-title {
  color: #f97316;
  font-size: 1.3em;
  margin: 0 0 16px 0;
  font-weight: 600;
}

.supporter-slide-message {
  padding: 12px 16px;
  background: linear-gradient(135deg, #fff7ed 0%, #ffffff 100%);
  border-radius: 8px;
  margin-bottom: 16px;
  border: 1px solid #fed7aa;
}

.supporter-slide-message p {
  margin: 0 0 8px 0;
  color: #4a5568;
  font-size: 0.9em;
  line-height: 1.6;
  text-align: left;
}

.supporter-slide-message p:last-child {
  margin-bottom: 0;
}

.supporter-slide-thanks {
  font-weight: 600;
  color: #1e293b;
}

/* フィードバックセクション */
.supporter-slide-feedback {
  margin-bottom: 12px;
  padding: 10px 12px;
  background: #f0f9ff;
  border-radius: 8px;
  border: 1px solid #bae6fd;
}

.supporter-slide-feedback p {
  margin: 0 0 10px 0;
  color: #0369a1;
  font-size: 0.85em;
  line-height: 1.5;
}

/* X(Twitter)リンク */
.supporter-slide-twitter-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: #000000;
  color: #ffffff;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.supporter-slide-twitter-link:hover {
  background: #333333;
  transform: translateY(-1px);
  color: #ffffff;
}

.supporter-slide-twitter-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.supporter-slide-twitter-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.supporter-slide-twitter-label {
  font-size: 0.7em;
  opacity: 0.8;
}

.supporter-slide-twitter-handle {
  font-size: 0.85em;
  font-weight: 600;
}

/* 課金サポートセクション */
.supporter-slide-support-section {
  margin-bottom: 12px;
  padding: 10px 12px;
  background: linear-gradient(135deg, #fff7ed 0%, #ffffff 100%);
  border-radius: 8px;
  border: 1px solid #fed7aa;
}

.supporter-slide-support-section p {
  margin: 0 0 6px 0;
  color: #4a5568;
  font-size: 0.85em;
  line-height: 1.5;
  text-align: left;
}

.supporter-slide-support-section p:last-child {
  margin-bottom: 0;
}

.supporter-slide-support-cta {
  color: #ea580c !important;
  font-weight: 500;
}

/* マーキーアニメーション */
.supporter-slide-marquee-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
  mask-size: 100% 100%;
  -webkit-mask-size: 100% 100%;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
}

.supporter-slide-marquee {
  display: flex;
  width: max-content;
  animation: marquee 20s linear infinite;
}

.supporter-slide-marquee:hover {
  animation-play-state: paused;
}

.supporter-slide-marquee-content {
  display: flex;
  gap: 8px;
  padding-right: 8px;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.supporter-slide-list {
  margin-bottom: 16px;
  padding: 12px;
  background-color: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.supporter-slide-list h5 {
  color: #1877f2;
  margin: 0 0 10px 0;
  font-size: 0.85em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.supporter-slide-name {
  background: linear-gradient(135deg, #1877f2 0%, #0d5bbd 100%);
  color: #ffffff;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.8em;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.supporter-slide-name:hover {
  background: linear-gradient(135deg, #0d5bbd 0%, #0a4a9e 100%);
  transform: translateY(-1px);
  color: #ffffff;
}

.supporter-slide-cta {
  margin-top: 16px;
}

.supporter-slide-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.95em;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
  transition: all 0.3s ease;
}

.supporter-slide-button:hover {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.4);
  color: #ffffff;
}

/* スマホ向けレスポンシブ - スライド */
@media (max-width: 480px) {
  .supporter-slide-body {
    min-height: 280px;
  }

  .supporter-slide-icon i {
    font-size: 2em;
  }

  .supporter-slide-title {
    font-size: 1.1em;
  }

  .supporter-slide-message p {
    font-size: 0.85em;
  }

  .supporter-slide-button {
    padding: 10px 20px;
    font-size: 0.9em;
  }
}

