/* ===== プロフィール共通 ===== */
.profile-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  padding: 28px 24px;
  margin-bottom: 24px;
}
.profile-top {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}
.avatar-wrap { flex-shrink: 0; }
.avatar-img {
  width: 90px; height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #e8f4e8;
}
.avatar-initial {
  width: 90px; height: 90px;
  border-radius: 50%;
  background: #2e5c2e;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: bold;
  border: 3px solid #e8f4e8;
}
.profile-info { flex: 1; min-width: 0; }
.profile-name {
  font-size: 1.4rem;
  font-weight: bold;
  color: #222;
  margin-bottom: 6px;
}
.profile-bio {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 10px;
  white-space: pre-wrap;
}
.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.profile-meta-item {
  font-size: 0.8rem;
  color: #666;
  background: #f4f7f4;
  padding: 3px 10px;
  border-radius: 20px;
}
.style-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.badge-style {
  font-size: 0.78rem;
  background: #e8f4e8;
  color: #2e5c2e;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: bold;
}

/* ===== 統計 ===== */
.stats-row {
  display: flex;
  gap: 0;
  border-top: 1px solid #f0f0f0;
  margin-top: 16px;
  padding-top: 16px;
}
.stat-item {
  flex: 1;
  text-align: center;
}
.stat-item + .stat-item {
  border-left: 1px solid #f0f0f0;
}
a.stat-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background 0.12s;
  border-radius: 6px;
  padding: 4px 8px;
}
a.stat-link:hover { background: #f4f7f4; }
a.stat-link:hover .stat-num { color: #3a7a3a; }
.stat-num {
  font-size: 1.4rem;
  font-weight: bold;
  color: #2e5c2e;
  display: block;
}
.stat-label {
  font-size: 0.72rem;
  color: #aaa;
  margin-top: 2px;
}

/* ===== フォローボタン ===== */
.btn-follow {
  display: inline-block;
  padding: 8px 22px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: bold;
  margin-top: 10px;
  transition: all 0.15s;
}
.btn-follow.off {
  background: #2e5c2e;
  color: #fff;
}
.btn-follow.off:hover { background: #3a7a3a; }
.btn-follow.on {
  background: #eee;
  color: #666;
  border: 1px solid #ccc;
}
.btn-follow.on:hover { background: #e0e0e0; }

/* ===== 釣果グリッド ===== */
.section-title {
  font-size: 1rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e8f4e8;
}
.grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(3, 1fr); } }

.record-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.15s;
}
.record-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.13); }
.record-img { width: 100%; height: 150px; 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; }
.record-date { font-size: 0.78rem; color: #aaa; margin-bottom: 4px; }
.record-location { font-size: 0.85rem; color: #555; margin-bottom: 6px; }
.record-stats { display: flex; gap: 10px; flex-wrap: wrap; font-size: 0.82rem; }
.record-stats .item span:first-child { color: #aaa; font-size: 0.72rem; display: block; }
.record-stats .item span:last-child { font-weight: bold; color: #333; }
.size-hl { font-size: 1.1rem !important; color: #2e5c2e !important; }
.badge-priv {
  display: inline-block;
  font-size: 0.7rem;
  background: #eee;
  color: #888;
  padding: 1px 7px;
  border-radius: 10px;
  margin-left: 4px;
}
.empty {
  background: #fff;
  border-radius: 10px;
  padding: 40px;
  text-align: center;
  color: #999;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

/* ===== もっと見るボタン ===== */
.load-more-wrap {
  text-align: center;
  margin-top: 24px;
}
.btn-load-more {
  background: #fff;
  color: #2e5c2e;
  border: 2px solid #2e5c2e;
  padding: 10px 36px;
  border-radius: 24px;
  font-size: 0.95rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.btn-load-more:hover { background: #2e5c2e; color: #fff; }
.btn-load-more:disabled { opacity: 0.6; cursor: default; }

/* ===== 編集フォーム ===== */
.edit-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  padding: 24px;
  margin-bottom: 24px;
}
.edit-card h2 { font-size: 1rem; font-weight: bold; margin-bottom: 18px; color: #333; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 0.85rem; color: #555; margin-bottom: 5px; font-weight: bold; }
.form-row input[type=text],
.form-row textarea { width: 100%; padding: 10px 12px; border: 1px solid #ccc; border-radius: 6px; font-size: 0.95rem; font-family: sans-serif; }
.form-row textarea { resize: vertical; min-height: 80px; }
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: #2e5c2e; }
.char-count { font-size: 0.75rem; color: #aaa; text-align: right; margin-top: 3px; }
.style-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.style-checks label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  background: #f4f7f4;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  border: 1px solid #e0e8e0;
  font-weight: normal;
}
.style-checks input[type=checkbox]:checked + span {
  color: #2e5c2e;
  font-weight: bold;
}
.avatar-preview-wrap { display: flex; align-items: center; gap: 16px; margin-bottom: 10px; }
.btn-save {
  background: #2e5c2e;
  color: #fff;
  border: none;
  padding: 11px 28px;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  font-weight: bold;
}
.btn-save:hover { background: #3a7a3a; }
.msg-success { background: #e8f4e8; color: #2e5c2e; padding: 10px 14px; border-radius: 6px; margin-bottom: 16px; font-size: 0.9rem; }
.msg-error   { background: #ffe0e0; color: #c00; padding: 10px 14px; border-radius: 6px; margin-bottom: 16px; font-size: 0.9rem; }

.page-title { font-size: 1.2rem; font-weight: bold; color: #333; margin-bottom: 20px; }

/* ===== SNSアイコン（profile.php表示） ===== */
.sns-icons { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; margin-top: 6px; }
.sns-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #f0f0f0;
  color: #333;
  font-size: 1.15rem;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.sns-btn:hover { background: #333; color: #fff; }

/* ===== SNS入力欄（mypage.php） ===== */
.sns-inputs { display: flex; flex-direction: column; gap: 8px; }
.sns-row { display: flex; align-items: center; gap: 10px; }
.sns-icon { width: 22px; text-align: center; color: #555; font-size: 1.1rem; flex-shrink: 0; }
.sns-row input[type=text] { flex: 1; padding: 8px 10px; border: 1px solid #ccc; border-radius: 6px; font-size: 0.88rem; }
.sns-row input[type=text]:focus { outline: none; border-color: #2e5c2e; }

@media (max-width: 767px) {
  .profile-top { flex-direction: column; align-items: center; text-align: center; }
  .style-badges, .profile-meta, .sns-icons { justify-content: center; }
  .stats-row { gap: 0; }
}
