/* タブ */
.tabs { display: flex; gap: 0; margin-bottom: 20px; border-bottom: 2px solid #ddd; }
.tabs a { padding: 10px 24px; font-size: 0.95rem; text-decoration: none; color: #888; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tabs a.active { color: #2e5c2e; border-bottom-color: #2e5c2e; font-weight: bold; }
.tab-count { font-size: 0.78rem; color: #aaa; margin-left: 4px; }

/* 検索 */
.search-box { background: #fff; border-radius: 10px; padding: 16px; margin-bottom: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.07); }
.search-row { display: flex; gap: 8px; flex-wrap: wrap; }
.search-row input, .search-row select { flex: 1; min-width: 100px; padding: 8px 10px; border: 1px solid #ccc; border-radius: 6px; font-size: 0.9rem; }
.search-row input:focus, .search-row select:focus { outline: none; border-color: #2e5c2e; }
.btn-search { background: #2e5c2e; color: #fff; border: none; padding: 8px 18px; border-radius: 6px; font-size: 0.9rem; cursor: pointer; white-space: nowrap; }
.btn-reset { background: #eee; color: #555; border: none; padding: 8px 14px; border-radius: 6px; font-size: 0.9rem; cursor: pointer; text-decoration: none; white-space: nowrap; }

/* グリッド */
.grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(3, 1fr); } }

.empty { background: #fff; border-radius: 10px; padding: 48px; text-align: center; color: #999; box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
.record-card { background: #fff; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.07); overflow: hidden; display: flex; flex-direction: column; cursor: pointer; }
.record-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.13); }
.record-img { width: 100%; height: 160px; object-fit: cover; display: block; }
.no-img { width: 100%; height: 100px; background: #f0f4f0; display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.record-inner { padding: 12px 14px; flex: 1; display: flex; flex-direction: column; }
.record-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.record-user { font-size: 0.82rem; color: #888; text-decoration: none; }
.record-user strong { color: #2e5c2e; }
.record-date { font-size: 0.82rem; color: #aaa; }
.record-location { font-size: 0.88rem; color: #555; margin-bottom: 8px; }
.record-body { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 0.85rem; margin-bottom: 8px; }
.record-body .item { display: flex; flex-direction: column; }
.record-body .item span:first-child { font-size: 0.72rem; color: #aaa; margin-bottom: 1px; }
.record-body .item span:last-child { font-weight: bold; color: #333; }
.size-highlight { font-size: 1.3rem !important; color: #2e5c2e !important; }
.record-lure { min-height: 2.8em; overflow: hidden; font-size: 0.85rem; margin-bottom: 6px; }
.lure-label { font-size: 0.72rem; color: #aaa; display: block; margin-bottom: 1px; }
.lure-name { font-weight: bold; color: #333; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.record-weather { min-height: 1.6em; margin-bottom: 4px; }
.badge-weather { font-size: 0.72rem; background: #e8f4e8; color: #2e5c2e; padding: 2px 8px; border-radius: 20px; }
.memo { margin-top: 6px; font-size: 0.82rem; color: #666; background: #f9f9f9; border-radius: 6px; padding: 7px 10px; line-height: 1.5; }
.card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding-top: 8px; border-top: 1px solid #f0f0f0; font-size: 0.85rem; }

/* タイルいいねボタン */
.btn-tile-like { display: flex; align-items: center; gap: 4px; background: none; border: none; cursor: pointer; font-size: 0.88rem; padding: 4px 8px; border-radius: 20px; color: #ccc; transition: all 0.15s; }
.btn-tile-like.liked { color: #e66; }
.btn-tile-like:hover { background: #fff0f0; color: #e66; }

/* サービス説明バナー */
.hero { background: linear-gradient(135deg, #1a3d1a 0%, #2e5c2e 60%, #3a7a3a 100%); border-radius: 12px; padding: 36px 28px; margin-bottom: 24px; color: #fff; text-align: center; }
.hero h2 { font-size: 1.45rem; font-weight: bold; margin-bottom: 10px; line-height: 1.4; letter-spacing: 0.02em; }
.hero p { font-size: 0.92rem; color: #c8e6c8; line-height: 1.7; margin-bottom: 24px; }
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-btns a { padding: 12px 28px; border-radius: 8px; text-decoration: none; font-size: 0.95rem; font-weight: bold; }
.btn-hero-register { background: #fff; color: #2e5c2e; }
.btn-hero-register:hover { background: #e8f4e8; }
.btn-hero-login { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.6); }
.btn-hero-login:hover { background: rgba(255,255,255,0.1); }

/* 未ログインポップアップ */
.popup-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 100; align-items: center; justify-content: center; }
.popup-overlay.show { display: flex; }
.popup { background: #fff; border-radius: 14px; padding: 32px 28px; max-width: 320px; width: 90%; text-align: center; box-shadow: 0 8px 32px rgba(0,0,0,0.2); }
.popup .icon { font-size: 2.5rem; margin-bottom: 12px; }
.popup h3 { font-size: 1rem; color: #333; margin-bottom: 8px; }
.popup p { font-size: 0.85rem; color: #888; margin-bottom: 20px; line-height: 1.6; }
.popup .popup-btns { display: flex; gap: 10px; }
.popup .popup-btns a { flex: 1; padding: 10px; border-radius: 8px; text-decoration: none; font-size: 0.9rem; font-weight: bold; }
.popup-register { background: #2e5c2e; color: #fff; }
.popup-login { background: #eee; color: #444; }
.popup-close { margin-top: 14px; font-size: 0.82rem; color: #aaa; cursor: pointer; display: block; }

/* ページャー */
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 28px; flex-wrap: wrap; }
.pager a, .pager span { display: inline-block; padding: 7px 13px; border-radius: 6px; font-size: 0.9rem; text-decoration: none; }
.pager a { background: #fff; color: #2e5c2e; border: 1px solid #c0d8c0; }
.pager a:hover { background: #e8f4e8; }
.pager .current { background: #2e5c2e; color: #fff; border: 1px solid #2e5c2e; }
.pager .disabled { color: #ccc; }
