/* ===== 全体レイアウト ===== */
.business-group-page {
  display: flex;
  min-height: 100vh;
  width: 100vw;
  height: 100vh;
  position: relative;
  background: #eafcf6;  /* 明るいグリーン系 */
  font-family: 'Segoe UI', 'Hiragino Sans', Meiryo, sans-serif;
}

/* ===== サイドパネル（ユーザーリスト） ===== */
.user-list-panel {
  position: fixed;
  left: 0;
  top: 0;
  height: 100dvh;
  width: 60vw;
  min-width: 140px;
  max-width: 260px;
  background: #f0fff7; /* やや明るい緑ベース */
  border-right: 2px solid #95e5d6; /* 緑系ライン */
  box-shadow: 4px 0 16px #9be7b933;
  padding: 16px 8px 12px 8px;
  box-sizing: border-box;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  transition: transform 0.26s cubic-bezier(.39,1.05,.48,.92), box-shadow 0.16s;
  will-change: transform;
}
.user-list-panel.closed {
  transform: translateX(-120%);
  pointer-events: none;
  box-shadow: none;
}
.user-list-panel h2 {
  margin-bottom: 7px;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  color: #22a673; /* アクセントの濃い緑 */
}

/* ハンバーガーボタン */
.user-list-open-btn {
  background: #c4f2e2;
  border: none;
}
.user-list-open-btn:active { background: #22a673; }
.user-list-close-btn {
  display: block;
  position: absolute;
  right: 12px;
  top: 14px;
  background: none;
  border: none;
  font-size: 2.3em;
  color: #8dcdb0;
  cursor: pointer;
  z-index: 10;
  line-height: 1;
  transition: color 0.15s;
}
.user-list-close-btn:hover { color: #22a673; }

/* ユーザー検索 */
.user-search {
  padding: 6px 8px;
  margin-bottom: 10px;
  font-size: 0.98rem;
  border: 1px solid #c6ebdf;
  border-radius: 4px;
  background: #fff;
  width: 100%;
  box-sizing: border-box;
}
.user-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  font-size: 0.98em;
}
.user-list li {
  padding: 9px 3px 7px 3px;
  border-bottom: 1px solid #d5f6ea;
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: background 0.12s;
}
.user-list li:hover {
  background: #dafbee;
}
/* 会社名・名前 */
.user-company {
  font-size: 1.16em;
  color: #ff8a23;
  line-height: 1.1;
  letter-spacing: 0.03em;
}
.user-name {
  font-size: 0.91em;
  font-weight: 500;
  color: #9a6914;
  letter-spacing: 0.01em;
  margin-top: 1px;
}

/* ===== アナウンス部（投稿・リスト） ===== */
.announcement-panel {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  margin-left: 0;
  background: #fff;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
  transition: padding 0.2s;
}

/* 投稿フォーム＋タブ（上部固定） */
.announcement-header {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 10;
  padding: 12px 0 0 0;
  box-shadow: 0 2px 10px #22a67314;
}
.announcement-form {
  display: flex;
  gap: 5px;
  margin-bottom: 7px;
  align-items: flex-start;
}
.announcement-type {
  font-size: 0.97em;
  padding: 4px 7px;
  border-radius: 4px;
  border: 1px solid #c1eadb;
}
.announcement-form textarea {
  flex: 1;
  height: 36px;
  min-height: 24px;
  resize: vertical;
  padding: 6px;
  font-size: 0.98rem;
  background: #f0f0f0;
}
.announcement-form button {
  padding: 0 13px;
  font-size: 0.97rem;
  border-radius: 4px;
  background: #fff;                    /* 白背景 */
  color: #22a673;                      /* 柔らかいグリーン系（#22a673） */
  border: 1px solid #22a673;           /* 緑の枠線 */
  cursor: pointer;
  font-weight: 600;
  transition: background 0.14s, color 0.14s, border-color 0.14s, box-shadow 0.16s;
  height: 36px;
}
.announcement-form button:hover {
  background: #e9fff6;                 /* ほんのり緑がかった白 */
  color: #12906a;                      /* 濃い緑文字 */
  border-color: #12906a;
}

/* タブ */
.announcement-tabs {
  margin-bottom: 6px;
  display: flex;
  gap: 8px;
}
.tab-btn {
  border: none;
  background: #f3f3f6;      /* 薄いグレー（ベース） */
  padding: 3px 14px;
  border-radius: 15px;
  cursor: pointer;
  font-size: 0.96em;
  font-weight: 600;
  color: #2b2b2b;           /* 濃いめグレー文字 */
  transition: background 0.17s, color 0.17s;
  letter-spacing: 0.01em;
}
.tab-btn.active, .tab-btn:hover {
  background: #e1e1e7;      /* アクティブ時も薄いグレー */
  color: #111;              /* さらに締める文字色 */
  border: 1.2px solid #bdbdbd; /* 薄いグレーの枠線でメリハリ */
  box-shadow: 0 2px 8px #2221;
}

/* 投稿リスト */
.announcement-list {
  flex: 1 1 0;
  overflow-y: auto;
  padding: 0 0 12px 0;
  box-sizing: border-box;
  height: 0;
  margin-top: 3px;
}
.announcement-item {
  border-bottom: 1px solid #c8f5df;
  background: #ecfcf3;
  margin-bottom: 3px;
  border-radius: 4px;
  font-size: 0.98em;
}
.announcement-type-label {
  font-weight: 700;
  font-size: 0.95em;
  color: #22a673;
}
.announcement-content {
  margin: 5px 0 2px 0;
  font-size: 1.04em;
  line-height: 1.5;
}
.announcement-footer {
  display: flex;
  flex-direction: column;  /* ←ここ重要 */
  gap: 0.4em;
  font-size: 0.93em;
  color: #8ec1ad;
  margin-top: 2px;
}
/* 種類ごとの色 */
.announcement-item.announcement-consult {
  background: #ebe7fa;           /* 薄いラベンダー紫 */
}
.announcement-item.announcement-notice {
  background: #fff8ea;           /* 薄いイエロー */
}
.announcement-item.announcement-consult .announcement-type-label {
  color: #7d3be6;                /* しっかり紫（POPな明度） */
}
.announcement-item.announcement-notice .announcement-type-label {
  color: #ff9600;                /* ビビッドな黄橙 */
}

/* ===== スクロールバー美化（任意） ===== */
.announcement-list::-webkit-scrollbar,
.user-list::-webkit-scrollbar {
  width: 7px;
  background: #e7f8f2;
}
.announcement-list::-webkit-scrollbar-thumb,
.user-list::-webkit-scrollbar-thumb {
  background: #8fd5b7;
  border-radius: 5px;
}

/* ===== ホームへ戻るボタン：右下固定 ===== */
.back-home-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  font-size: 1.08rem;
  padding: 11px 22px;
  border-radius: 24px;
  background: #fff;             /* 薄い黒（濃グレー） */
  color: #232323;
  border: 1.3px solid #444448;     /* 薄い黒（淡いグレー寄りの黒） */
  font-weight: 600;
  cursor: pointer;
  z-index: 3000;
  transition: background .13s, color .13s, box-shadow .18s, border-color .13s;
}
.back-home-btn:hover {
  background: #fff;
  color: #232329;                  /* 通常時の背景色を文字に */
  border-color: #232329;
  box-shadow: 0 8px 24px #23232933;
}

.user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.user-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.go-chat-btn {
  background: #faca58;
  color: #fff;
  border: none;
  border-radius: 16px;
  padding: 7px 16px;
  font-size: 0.96em;
  cursor: pointer;
  margin-left: 8px;
  transition: background 0.18s;
  white-space: nowrap;
}
.go-chat-btn:hover {
  background: #12906a;
}

.reserve-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 7px 18px;
  border: none;
  border-radius: 24px;
  background: linear-gradient(90deg, #ffdf6b 70%, #ffdf6b 100%);
  color: #3b3838;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.13s, box-shadow 0.18s;
}
.reserve-btn:hover {
  background: linear-gradient(90deg, #ffe066 30%, #f9c74f 100%);
  transform: scale(1.07);
}
.reserve-icon {
  font-size: 1.23em;
}

.reserve-modal {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.reserve-modal-bg {
  position: fixed;
  inset: 0;
  background: #2229;
}
.reserve-modal-content {
  background: #fff;
  border-radius: 15px;
  padding: 32px 24px 22px 24px;
  min-width: min(90vw, 340px);
  box-shadow: 0 10px 32px #0003, 0 1.5px 6px #22a67329;
  position: relative;
  text-align: center;
}
.reserve-modal-close {
  position: absolute;
  top: 13px; right: 18px;
  font-size: 2rem;
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  line-height: 1;
}
.reserve-modal-close:hover {
  color: #22a673;
}
.reserve-modal-content form {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* ←これで左揃え */
  gap: 11px;
}

.reserve-modal-content label {
  display: flex;
  align-items: center;
  font-weight: 600;
  color: #444;
  min-width: 0;
  margin-bottom: 0;
  font-size: 1em;
}

.reserve-modal-content input[type="date"],
.reserve-modal-content input[type="text"],
.reserve-modal-content input[type="time"] {
  margin-left: 8px;
  padding: 5px 7px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1em;
}

.reserve-modal-submit {
  margin-top: 12px;
  background: #ffe066;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 1.1em;
  padding: 8px 24px;
  color: #6c5200;
  cursor: pointer;
  transition: background .18s;
  align-self: center; /* ←左端にボタンを寄せる */
}
.reserve-modal-submit:hover {
  background: #ffe88a;
}
.chat-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 7px 18px;
  border: none;
  border-radius: 24px;
  background: linear-gradient(90deg, #c2b2ed 70%, #c2b2ed 100%);
  color: #444;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.13s, box-shadow 0.18s, background 0.16s;
  margin-top: 2px;
}
.chat-btn:hover {
  background: linear-gradient(90deg, #c8b7f8 30%, #a490e6 100%);
  transform: scale(1.07);
  box-shadow: 0 2px 8px #b098f299;
}


.ads-area {
  width: 100%;
  max-width: 900px;
  margin: 6px 0 0 auto;  /* 上だけちょっと空けて中央寄せ */
  display: flex;
  justify-content: flex-end;
}

.adsbygoogle {
  width: 320px !important;
  height: 48px !important;
  max-height: 48px !important;
  min-height: 28px;
  /* 必要ならbackground: #fff;（広告枠を白に）も可 */
}
@media (max-width: 600px) {
  .ads-area {
    max-width: 98vw;
    margin-left: 0;
    margin-right: 0;
  }
  .adsbygoogle {
    min-height: 48px;
    height: 52px !important;
    max-height: 60px !important;
  }
}

/* ===== レスポンシブ ===== */
@media (max-width: 900px) {
  .announcement-panel {
    padding-left: 5vw;
    padding-right: 5vw;
  }
  .user-list-panel {
    min-width: 120px;
    width: 80vw;
    max-width: 92vw;
    padding: 12px 7px 8px 7px;
  }
}
@media (max-width: 600px) {
  .announcement-panel {
    padding-left: 2vw;
    padding-right: 2vw;
  }
  .user-list-panel {
    min-width: 50vw;
    width: 92vw;
    max-width: 99vw;
    padding: 7px 2vw 4px 2vw;
  }
  .back-home-btn {
    font-size: 1.00rem;
    bottom: 11px;
    right: 7px;
    padding: 8px 17px;
  }
}
@media (max-width: 600px) {
  .go-chat-btn {
    font-size: 0.92em;
    padding: 6px 11px;
  }
}
