/* --- Reset & Base --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: sans-serif; background: #f4f7f4; min-height: 100vh; }

/* --- Header --- */
header { background: #2e5c2e; color: #fff; padding: 14px 24px; display: flex; justify-content: space-between; align-items: center; position: relative; }
header .site-logo { font-size: 0; font-weight: normal; }
header .site-logo a { color: #fff; text-decoration: none; }
header .nav { font-size: 0.85rem; display: flex; align-items: center; gap: 14px; }
header .nav a, header .user-info a { color: #cfe8cf; text-decoration: none; font-size: 0.85rem; }
header .user-info { font-size: 0.85rem; display: flex; align-items: center; gap: 14px; }
header .user-info span { color: #cfe8cf; }
.btn-record-header { background: #fff; color: #2e5c2e !important; padding: 6px 16px; border-radius: 20px; font-weight: bold; font-size: 0.85rem !important; }

/* --- Container --- */
.container { max-width: 1000px; margin: 24px auto; padding: 0 16px 40px; }

/* --- Footer --- */
footer.site-footer { text-align: center; padding: 24px 16px; font-size: 0.82rem; color: #888; background: #f0f0f0; border-top: 1px solid #ddd; }
footer.site-footer .footer-links { display: flex; gap: 8px; justify-content: center; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
footer.site-footer a { color: #555; text-decoration: none; }
footer.site-footer a:hover { color: #2e5c2e; }
footer.site-footer .copy { color: #aaa; font-size: 0.78rem; }

/* --- Page Title (H1 for sub pages) --- */
.page-title { color: #2e5c2e; font-size: 1.3rem; margin-bottom: 20px; }

/* ================================================
   BassMemory 共通レスポンシブスタイル
   PC表示（768px以上）は一切変更しない
   ================================================ */

/* ===== ハンバーガーボタン（PC非表示） ===== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 4px;
  z-index: 60;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
/* ×アニメーション */
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== X(Twitter)シェアボタン ===== */
.btn-x-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
  flex-shrink: 0;
}
.btn-x-share:hover { background: #e0e0e0; }
.btn-x-share img { width: 14px; height: 14px; display: block; }

/* ===== 通報ボタン ===== */
.btn-tile-report {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.78rem;
  color: #ccc;
  padding: 4px 8px;
  border-radius: 20px;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.btn-tile-report:hover { color: #c44; background: #fff0f0; }

/* ===== 通報モーダル ===== */
.report-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 200;
  align-items: center;
  justify-content: center;
}
.report-overlay.show { display: flex; }
.report-modal {
  background: #fff;
  border-radius: 14px;
  padding: 28px 28px 24px;
  max-width: 340px;
  width: 90%;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.report-modal h3 { font-size: 1rem; color: #333; margin-bottom: 12px; }
.report-modal p  { font-size: 0.85rem; color: #888; margin-bottom: 16px; line-height: 1.6; }
.report-modal label { display: block; font-size: 0.9rem; color: #444; margin-bottom: 10px; cursor: pointer; }
.report-modal label input { margin-right: 8px; }
.report-modal-btns { display: flex; gap: 10px; margin-top: 20px; }
.btn-report-submit  { flex: 1; background: #c44; color: #fff; border: none; padding: 10px; border-radius: 8px; font-size: 0.9rem; font-weight: bold; cursor: pointer; }
.btn-report-submit:hover { background: #a33; }
.btn-report-cancel  { flex: 1; background: #eee; color: #555; border: none; padding: 10px; border-radius: 8px; font-size: 0.9rem; cursor: pointer; }

/* ===== サイトフッター ===== */
.site-footer {
  text-align: center;
  padding: 28px 16px;
  font-size: 0.82rem;
  color: #999;
  border-top: 1px solid #e0e0e0;
  margin-top: 48px;
  background: #fff;
}
.site-footer .footer-links { display: flex; gap: 8px; justify-content: center; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.site-footer a {
  color: #2e5c2e;
  text-decoration: none;
}
.site-footer a:hover { text-decoration: underline; }
.site-footer .sep { color: #ccc; }
.site-footer .copy { display: block; font-size: 0.78rem; color: #bbb; }

/* ================================================
   767px以下のスマホ用スタイル
   ================================================ */
@media (max-width: 767px) {

  /* ヘッダー: position:relativeでドロップダウンの基点に */
  header {
    position: relative;
  }

  /* ハンバーガーボタン表示 */
  .hamburger {
    display: flex;
  }

  /* nav・user-info: 通常時は非表示 → ドロップダウン */
  header .nav,
  header .user-info {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #1e3d1e;
    padding: 4px 0 8px;
    z-index: 50;
    box-shadow: 0 6px 20px rgba(0,0,0,0.35);
  }
  header .nav.open,
  header .user-info.open {
    display: flex !important;
  }

  /* ナビ内の各リンク・テキスト */
  header .nav a,
  header .nav span,
  header .user-info a,
  header .user-info span {
    display: block;
    padding: 13px 24px;
    font-size: 0.95rem !important;
    color: #e8f5e8 !important;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    background: none !important;
    border-radius: 0 !important;
  }
  header .nav a:last-child,
  header .user-info a:last-child {
    border-bottom: none;
  }
  header .nav a:hover,
  header .user-info a:hover {
    background: rgba(255,255,255,0.08) !important;
  }

  /* ===== 検索フォーム: 縦並びに ===== */
  .search-row {
    flex-direction: column !important;
  }
  .search-row input,
  .search-row select {
    width: 100% !important;
    min-width: 0 !important;
  }
  .btn-search,
  .btn-reset {
    width: 100%;
    text-align: center;
  }

  /* ===== ヒーローバナー ===== */
  .hero {
    padding: 24px 18px;
  }
  .hero h2 {
    font-size: 1.1rem;
  }
  .hero p {
    font-size: 0.83rem;
    margin-bottom: 18px;
  }
  .hero-btns {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }
  .hero-btns a {
    text-align: center;
    padding: 12px 20px;
  }

  /* ===== コンテナ余白 ===== */
  .container {
    margin-top: 16px;
  }

}
