/* 既存のスタイルを保持しつつ、新しいスタイルを追加 */

img { 
  max-width: 100%; 
  height: auto; 
}

.wrapper {
  margin: 0 auto;
  max-width: 80%;
  width: 100%;
}

@media (max-width: 768px) {
  .wrapper {
    max-width: 100%;
    padding: 0 1rem;
  }
}

.modal-backdrop {
  position: fixed; 
  top: 0; 
  left: 0;
  width: 100%; 
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
}

.modal-content {
  position: fixed;
  top: 50%; 
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 2rem;
  max-height: none;
  overflow-y: visible;
  z-index: 1001;
  width: 80%;
}

@media (max-width: 768px) {
  .modal-content {
    width: 96%;
    margin: 0 2%;
    padding: 1.5rem;
    box-sizing: border-box;
  }
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

th, td {
  border: 1px solid #ccc;
  padding: 0.5rem;
  text-align: left;
}

th {
  background-color: #eee;
}

td:first-child,
th:first-child {
  padding-left: 5px;
}

.modal-list li {
  list-style: none;
}

/* CarpCatchLog.html から追加したスタイル */
footer {
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid #e1e1e1;
}

.footer-menu {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  margin: 1rem auto;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #333;
  margin: 4px auto;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
  margin-top: 1rem;
}

/* テーブル行スタイル（全デバイス共通） */
table:not(.modal-table) tbody tr {
  cursor: pointer;
  transition: background-color 0.2s ease;
  background-color: #9370db;
  color: white;
}

table.modal-table tbody tr {
  background-color: inherit;
  color: inherit;
}

table tbody tr:hover {
  background-color: #f8f9fa;
  color: inherit;
}

/* タッチデバイス用フィードバック */
@media (hover: none) {
  table tbody tr:hover {
    background-color: #9370db;
  }
  table tbody tr:active {
    background-color: #f8f9fa;
    color: inherit;
  }
}

/* スマートフォン用の表示切替 */
@media (max-width: 768px) {
  .footer-menu {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu[ x-cloak ] {
    display: none !important;
  }

  .mobile-menu.show {
    display: flex;
  }
}

/* 既存の他のスタイルも以下に保持 */
.site-header {
  text-align: center;
  margin-bottom: 20px;
  padding: 0.5rem 0;
  background: #f5f5f5;
  border-bottom: 1px solid #e1e1e1;
}

.logo-text {
  font-size: 0.8rem;
  font-family: 'Arial', sans-serif;
  letter-spacing: 1px;
  color: #333;
  font-weight: bold;
}

/* モーダル閉じるボタン */
.modal-close-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
  padding: 0.5rem;
  line-height: 1;
}

/* モーダルリストスタイル */
.modal-list {
  padding-left: 1.5rem;
}

.modal-list li {
  margin-bottom: 1rem;
}

/* 全モーダル共通スクロールスタイル (3ファイル適用) */
.modal-content-container {
  max-height: 70vh;
  overflow-y: auto;
  padding: 1rem 0.5rem 1rem 1rem;
  margin: 0 -0.5rem; /* パディング調整 */
  scrollbar-gutter: stable;
}

/* スクロールバー改良版 */
.modal-content-container::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.modal-content-container::-webkit-scrollbar-thumb {
  background: #aaa;
  border-radius: 4px;
}

.modal-content-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

/* モバイル対応 */
@media (max-width: 768px) {
  .modal-content-container {
    max-height: 60vh;
    padding: 0.5rem;
  }
}

/* readonly入力欄のスタイル */
input[readonly] {
  background-color: #f5f5f5;
  cursor: not-allowed;
}

/* 釣果登録/検索見出しスタイル */
h4 {
  color: #9370db; /* 紫色 */
  border-bottom: 2px solid #9370db;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  font-weight: bold;
}

/* その他の既存スタイル... */
