/* =====================================================
   Salon de Hagita SNS
   白・stone（温かみグレー黒）基調
   Primary text : #1c1917  (stone-900)
   Button       : #292524  (stone-800)
   Muted        : #78716c  (stone-500)
   Border       : #e7e5e4  (stone-200)
   BG page      : #fafaf9  (stone-50)
   ===================================================== */

:root {
  --stone-50:   #fafaf9;
  --stone-100:  #f5f5f4;
  --stone-200:  #e7e5e4;
  --stone-300:  #d6d3d1;
  --stone-400:  #a8a29e;
  --stone-500:  #78716c;
  --stone-600:  #57534e;
  --stone-700:  #44403c;
  --stone-800:  #292524;
  --stone-900:  #1c1917;

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-full: 9999px;
}

/* ── ベース ──────────────────────────────────────── */
body {
  background-color: var(--stone-50);
  font-family: 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W3',
               'メイリオ', 'Meiryo', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.02em;
  color: var(--stone-900);
}

h1 { font-size: 24px; font-weight: 600; letter-spacing: -0.01em; color: var(--stone-900); }
h2 { font-size: 20px; font-weight: 600; color: var(--stone-900); }
h3 { font-size: 16px; font-weight: 600; color: var(--stone-800); }

big     { font-size: 15px; font-weight: 500; }
caption { font-size: 12px; color: var(--stone-500); letter-spacing: 0.04em; }

label {
  font-size: 13px;
  font-weight: 600;
  color: var(--stone-800);
}

a {
  color: var(--stone-700);
  text-decoration: none;
  transition: color 0.15s;
}
a:hover { color: var(--stone-900); }

/* ── ヘッダー ─────────────────────────────────────── */
.gcsnstest-header-container {
  background-color: rgba(255,255,255,0.97);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid var(--stone-200);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.navbar-brand img {
  height: 36px;
  width: auto;
}

.nav-link {
  color: var(--stone-700) !important;
  font-weight: 500;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  transition: color 0.15s;
}
.nav-link:hover,
.nav-link.active {
  color: var(--stone-900) !important;
}

.navbar-nav .nav-item label {
  cursor: pointer;
  font-weight: 500;
  font-size: 13.5px;
  color: var(--stone-700);
}

/* ── サイドバー ───────────────────────────────────── */
.list-group-item {
  border-color: var(--stone-200) !important;
  font-size: 13px;
  color: var(--stone-700);
}
.list-group-item.active {
  background-color: var(--stone-900) !important;
  border-color: var(--stone-900) !important;
  color: #ffffff !important;
}
.list-group-item-action:hover {
  background-color: var(--stone-100);
  color: var(--stone-900);
}

/* ── カード ───────────────────────────────────────── */
.card {
  max-width: 100%;
  min-height: 200px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--stone-200);
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card img,
.card video {
  max-width: 100%;
  height: auto;
  margin-bottom: 1rem;
  border-radius: var(--radius-md);
}

.card .meta-info {
  font-size: 0.82rem;
  color: var(--stone-500);
  margin-top: auto;
}

/* ── フォーム入力 ──────────────────────────────────── */
.gcsnstest-login-input {
  border-radius: var(--radius-sm);
  border: 1px solid var(--stone-300);
  background-color: #ffffff;
  font-size: 14px;
  color: var(--stone-900);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.gcsnstest-login-input:focus {
  border-color: var(--stone-700);
  box-shadow: 0 0 0 3px rgba(28,25,23,0.08);
  outline: none;
}

.form-control {
  border-color: var(--stone-300) !important;
  font-size: 14px;
  color: var(--stone-900) !important;
}
.form-control:focus {
  border-color: var(--stone-700) !important;
  box-shadow: 0 0 0 3px rgba(28,25,23,0.08) !important;
}

/* ── ラベル ───────────────────────────────────────── */
.gcsnstest-check-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--stone-700);
}

.gcsnstest-require-input-label {
  border-radius: var(--radius-sm);
  background-color: #dc2626;
  padding: 1px 6px;
}

.gcsnstest-require-input-label-text {
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
}

/* ── ボタン（黒基調）────────────────────────────────── */
.gcsnstest-submit-button {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  background-color: var(--stone-800);
  border: none;
  border-radius: var(--radius-full);
  padding: 9px 22px;
  transition: background-color 0.15s;
}
.gcsnstest-submit-button:hover {
  background-color: var(--stone-700);
}

.gcsnstest-delete-submit-button {
  border-radius: var(--radius-sm);
  color: #ffffff;
  background-color: #dc2626;
  border: none;
  transition: background-color 0.15s;
}
.gcsnstest-delete-submit-button:hover {
  background-color: #b91c1c;
}

/* Bootstrap btn-primary → stone-800 に統一 */
.btn-primary {
  background-color: var(--stone-800) !important;
  border-color: var(--stone-800) !important;
  color: #ffffff !important;
  border-radius: var(--radius-full) !important;
  font-weight: 500 !important;
  font-size: 13.5px !important;
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--stone-700) !important;
  border-color: var(--stone-700) !important;
  box-shadow: none !important;
}

.btn-secondary {
  background-color: transparent !important;
  border: 1px solid var(--stone-300) !important;
  color: var(--stone-700) !important;
  border-radius: var(--radius-full) !important;
  font-weight: 500 !important;
  font-size: 13.5px !important;
}
.btn-secondary:hover {
  background-color: var(--stone-100) !important;
  color: var(--stone-900) !important;
}

.btn-outline-primary {
  color: var(--stone-800) !important;
  border-color: var(--stone-300) !important;
  border-radius: var(--radius-full) !important;
}
.btn-outline-primary:hover {
  background-color: var(--stone-800) !important;
  border-color: var(--stone-800) !important;
  color: #ffffff !important;
}

/* ── テキストリンク ────────────────────────────────── */
.gcsnstest-login-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--stone-700);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s;
}
.gcsnstest-login-text:hover {
  color: var(--stone-900);
}

/* ── 検索 ─────────────────────────────────────────── */
.gcsnstest-header-search-input {
  border: 1px solid var(--stone-200);
  background-color: var(--stone-100);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  font-size: 13px;
}

.gcsnstest-header-search-button {
  background-color: var(--stone-800);
  border: none;
  transition: background-color 0.15s;
}
.gcsnstest-header-search-button:hover {
  background-color: var(--stone-700);
}

.gcsnstest-header-search-icon {
  color: #ffffff;
}

/* ── お気に入り・グループ ─────────────────────────── */
.gcsnstest-favorite-button,
.gcsnstest-fgroup-button {
  border-radius: var(--radius-sm);
  border: 1px solid var(--stone-300);
  background-color: #ffffff;
  color: var(--stone-700);
  font-size: 13px;
  transition: background-color 0.15s, color 0.15s;
}
.gcsnstest-favorite-button:hover,
.gcsnstest-fgroup-button:hover {
  background-color: var(--stone-100);
  color: var(--stone-900);
  border-color: var(--stone-400);
}

.text-favorite,
.gcsnstest-text-group {
  color: var(--stone-700);
}

/* ── コメント ─────────────────────────────────────── */
.comment-box {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 10px 15px;
  max-width: 70%;
  display: inline-block;
  word-wrap: break-word;
}

.comment-box.sender {
  background: var(--stone-100);
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-lg);
  padding: 1rem;
  margin-bottom: 1rem;
  max-width: 70%;
  font-size: 0.9rem;
}

.comment-box.receiver {
  background: #ffffff;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-lg);
  padding: 1rem;
  margin-bottom: 1rem;
  max-width: 70%;
  font-size: 0.9rem;
}

.comment-box.sender::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 1rem;
  width: 0;
  height: 0;
  border: 10px solid transparent;
  border-top-color: var(--stone-100);
  border-bottom: 0;
  margin-right: -10px;
  margin-bottom: -10px;
}

.comment-box.receiver::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 1rem;
  width: 0;
  height: 0;
  border: 10px solid transparent;
  border-top-color: #ffffff;
  border-bottom: 0;
  margin-right: -10px;
  margin-bottom: -10px;
}

/* ── いいね ───────────────────────────────────────── */
.like-btn {
  background-color: #f43f5e;
  color: white;
  padding: 5px 10px;
  width: auto;
  max-width: 80px;
  white-space: nowrap;
  margin-left: 8px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: background-color 0.15s;
}
.like-btn:hover {
  background-color: #e11d48;
}

/* ── モーダル ─────────────────────────────────────── */
.modal-footer {
  padding-bottom: env(safe-area-inset-bottom, 80px);
}
.modal-header {
  border-bottom: 1px solid var(--stone-200);
  background-color: var(--stone-50);
}
.modal-title {
  color: var(--stone-900);
  font-weight: 600;
  font-size: 16px;
}

/* ── バッジ ───────────────────────────────────────── */
.badge.bg-primary {
  background-color: var(--stone-800) !important;
}
.badge.bg-secondary {
  background-color: var(--stone-400) !important;
}

/* ── ボトムナビ（スマホ）────────────────────────────── */
.fixed-bottom.navbar {
  box-shadow: 0 -1px 3px rgba(0,0,0,0.07);
  background-color: rgba(255,255,255,0.97) !important;
  backdrop-filter: blur(4px);
}
.fixed-bottom .nav-link {
  font-size: 10px;
  letter-spacing: 0.04em;
  padding: 6px 4px;
  color: var(--stone-500) !important;
}
.fixed-bottom .nav-link i {
  font-size: 18px;
  display: block;
  margin-bottom: 2px;
}
.fixed-bottom .nav-link:hover,
.fixed-bottom .nav-link.active {
  color: var(--stone-900) !important;
}
