/* ペット掲示板（/communities）と部屋（/communities/:id）を、スマホで分かりやすく見せる */

.petter-board {
  color: #2f2a26;
}

.petter-board__head {
  margin-bottom: 1.25rem;
}

.petter-board__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.5rem;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.35;
}

.petter-board__title > i {
  color: #8cc37b;
}

.petter-board__lead {
  margin: 0 0 0.85rem;
  font-size: 15px;
  line-height: 1.7;
}

.petter-board__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.petter-board__steps li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.65rem 0.35rem;
  border-radius: 12px;
  background: #f1f7ee;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.petter-board__steps small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: #6b625b;
}

.petter-board__step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #3e8e5e;
  color: #fff;
  font-size: 13px;
}

.petter-board__guest {
  margin: 0.75rem 0 0;
  font-size: 14px;
  line-height: 1.6;
}

.petter-board__guest a {
  font-weight: 700;
  color: #3e8e5e;
}

.petter-board__section {
  margin-top: 1.75rem;
}

.petter-board__section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.petter-board__section-head h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.petter-board__more {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 700;
  color: #3e8e5e;
}

.petter-board__count {
  flex-shrink: 0;
  font-size: 13px;
  color: #6b625b;
}

.petter-board__topics,
.petter-board__rooms,
.petter-board__ideas {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.petter-board__topic {
  display: block;
  padding: 0.8rem 0.95rem;
  border: 1px solid #e6e0d8;
  border-radius: 12px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}

.petter-board__topic:hover,
.petter-board__room:hover {
  border-color: #9cc78c;
  color: inherit;
}

.petter-board__topic-title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.petter-board__topic-meta,
.petter-board__room-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.75rem;
  margin-top: 0.25rem;
  font-size: 12px;
  line-height: 1.5;
  color: #6b625b;
}

.petter-board__topic-room {
  color: #3e8e5e;
  font-weight: 700;
}

.petter-board__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.petter-board__chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.4rem 1.05rem;
  border: 1px solid #cfd8cc;
  border-radius: 999px;
  background: #fff;
  color: #2f2a26;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.petter-board__chip.is-active {
  border-color: #3e8e5e;
  background: #3e8e5e;
  color: #fff;
}

.petter-board__search {
  display: flex;
  margin-bottom: 1rem;
  overflow: hidden;
  border: 1px solid #cfc7bd;
  border-radius: 12px;
  background: #fff;
}

.petter-board__search input {
  flex: 1;
  min-width: 0;
  min-height: 46px;
  padding: 0.6rem 0.9rem;
  border: 0;
  outline: none;
  font-size: 16px;
}

.petter-board__search button {
  flex: 0 0 52px;
  border: 0;
  background: #f1f7ee;
  color: #3e8e5e;
}

.petter-board__room {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 2rem 0.8rem 0.8rem;
  border: 1px solid #e6e0d8;
  border-radius: 14px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}

.petter-board__room-img {
  display: flex;
  flex: 0 0 64px;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  overflow: hidden;
  border-radius: 12px;
  background: #f1f7ee;
  color: #8cc37b;
  font-size: 24px;
}

.petter-board__room-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.petter-board__room-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.petter-board__room-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.petter-board__room-desc {
  display: -webkit-box;
  margin-top: 0.15rem;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.5;
  color: #5c544d;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.petter-board__room-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.6rem;
  padding: 0.05rem 0.5rem;
  border-radius: 999px;
  background: #eaf4e6;
  color: #3e8e5e;
  font-size: 11px;
  font-weight: 700;
}

.petter-board__room-arrow {
  position: absolute;
  top: 50%;
  right: 0.8rem;
  transform: translateY(-50%);
  color: #b5aca3;
  font-size: 13px;
}

.petter-board__pages {
  margin-top: 1.25rem;
}

.petter-board__empty {
  padding: 1rem;
  border: 1px solid #f4dcc6;
  border-radius: 14px;
  background: #fff8f1;
  font-size: 14px;
  line-height: 1.6;
}

.petter-board__empty p {
  margin: 0 0 0.5rem;
}

.petter-board__empty a {
  font-weight: 700;
  color: #3e8e5e;
}

.petter-board__ideas li {
  display: flex;
  flex-direction: column;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  background: #fff;
}

.petter-board__ideas span {
  font-size: 13px;
  color: #6b625b;
}

.petter-board__create {
  margin-top: 2rem;
  padding: 1.1rem 1rem;
  border: 1px solid #f4dcc6;
  border-radius: 14px;
  background: #fff8f1;
  text-align: center;
}

.petter-board__create h2 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 700;
}

.petter-board__create p {
  margin: 0 0 0.8rem;
  font-size: 14px;
}

.petter-board__create-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.6rem 1.6rem;
  border-radius: 999px;
  background: #3e8e5e;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.petter-board__create-btn:hover {
  color: #fff;
  background: #357a51;
}

.petter-board__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  margin: 1.25rem 0 2rem;
  font-size: 14px;
  font-weight: 700;
}

.petter-board__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  color: #3e8e5e;
}

@media (min-width: 768px) {
  .petter-board__rooms {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .petter-board__steps li {
    flex-direction: row;
    justify-content: center;
  }
}

/* 部屋の画面（/communities/:id） */

.petter-room-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  font-size: 14px;
  font-weight: 700;
  color: #3e8e5e;
  text-decoration: none;
}

.petter-room-info {
  font-size: 14px;
}

.petter-room-info .petter-room-info__row {
  margin-top: 1rem !important;
}

.petter-room-join-note {
  margin: 0.5rem 0 0;
  font-size: 13px;
  color: #6b625b;
  text-align: center;
}

@media (max-width: 767.98px) {
  .petter-room .petter-room-info {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }
}

.petter-room-list-title {
  margin: 1.5rem 0 0.25rem;
  font-size: 1.15rem;
  font-weight: 700;
}

/* 上の「トップ・話題・イベント」と重なる下の段のタブは出さない（話題の一覧だけを見せる） */
.petter-room .petter-room-subtabs {
  display: none !important;
}

.petter-room-empty {
  margin: 1rem 0 0;
  padding: 1rem;
  border: 1px dashed #cfd8cc;
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

/* 書きこむボタンは「話題を作る」を主に、「イベントを作る」は控えめに */
.petter-room .community-create-action--topic {
  border-color: #3e8e5e !important;
  background: #3e8e5e !important;
  color: #fff !important;
}

.petter-room .community-create-action--event {
  border: 1px solid #d9cfc4 !important;
  background: #fff !important;
  color: #5c544d !important;
}
