/* ゆるりの会 スレッド形式BBS */
.bbs-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 22px 72px;
}

.bbs-shell {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(111, 183, 168, 0.2);
  border-radius: 32px;
  box-shadow: 0 14px 34px rgba(67, 120, 110, 0.14);
  padding: clamp(22px, 4vw, 38px);
}

.bbs-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 24px;
}

.bbs-kicker {
  display: inline-block;
  color: #3d8f83;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin-bottom: 5px;
}

.bbs-heading h1,
.bbs-view-title {
  color: #2f5f58;
  line-height: 1.3;
  margin: 0;
}

.bbs-heading h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.bbs-heading p { color: #526762; margin: 9px 0 0; max-width: 720px; }

.bbs-board-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
}
.bbs-board-nav a {
  border: 1px solid rgba(61, 143, 131, 0.28);
  border-radius: 999px;
  color: #3d8f83;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 7px 12px;
  text-decoration: none;
}
.bbs-board-nav a:hover { background: #f2fbf8; }
.bbs-board-nav a[aria-current="page"] { background: #3d8f83; color: #fff; }
.bbs-board-nav a.bbs-special-link { border-color: #e9ada8; color: #b42318; }
.bbs-board-nav a.bbs-special-link:hover { background: #fff0ee; }
.bbs-board-nav a.bbs-special-link[aria-current="page"] { background: #b42318; color: #fff; }
.bbs-main.bbs-special .bbs-heading h1,
.bbs-main.bbs-special .bbs-kicker { color: #b42318; }

.bbs-button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 46px;
  padding: 11px 20px;
  background: #6fb7a8;
  color: #fff;
  font: inherit;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(61, 143, 131, 0.2);
}

.bbs-button:hover { background: #3d8f83; }
.bbs-button:focus-visible,
.bbs-thread-link:focus-visible,
.bbs-file-label:focus-within { outline: 3px solid rgba(247, 178, 103, 0.7); outline-offset: 3px; }
.bbs-button.secondary { background: #fff; color: #3d8f83; border: 1px solid rgba(61, 143, 131, 0.35); box-shadow: none; }
.bbs-button.secondary:hover { background: #f2fbf8; }
.bbs-button:disabled { cursor: wait; opacity: 0.58; }

.bbs-notice {
  border-radius: 16px;
  margin: 0 0 20px;
  padding: 12px 15px;
  background: #f2fbf8;
  color: #315f58;
}

.bbs-notice:empty { display: none; }
.bbs-notice.is-error { background: #fff0ee; color: #9b3027; }
.bbs-notice.is-success { background: #edf9f1; color: #2f6d43; }

.bbs-login-gate,
.bbs-empty {
  text-align: center;
  border: 1px dashed rgba(61, 143, 131, 0.35);
  border-radius: 22px;
  background: #f8fcfb;
  padding: 34px 20px;
  color: #526762;
}

.bbs-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(111, 183, 168, 0.22);
}

.bbs-toolbar h2 { margin: 0; color: #2f5f58; font-size: 1.35rem; }
.bbs-toolbar small { color: #71837e; }

.bbs-thread-list { display: grid; gap: 14px; margin-top: 18px; }
.bbs-thread-card { border: 1px solid rgba(111, 183, 168, 0.22); border-radius: 20px; background: #fff; overflow: hidden; }
.bbs-thread-link { display: block; padding: 19px 20px; text-decoration: none; }
.bbs-thread-link:hover { background: #f8fcfb; }
.bbs-thread-card h3 { color: #2f5f58; font-size: 1.12rem; margin: 0 0 7px; }
.bbs-thread-card p { color: #526762; margin: 0 0 11px; overflow-wrap: anywhere; }
.bbs-meta { display: flex; flex-wrap: wrap; gap: 7px 16px; color: #788984; font-size: 0.88rem; }
.bbs-media-badge { color: #3d8f83; font-weight: 800; }

.bbs-composer,
.bbs-reply-box {
  border: 1px solid rgba(247, 178, 103, 0.42);
  border-radius: 22px;
  background: #fffaf3;
  padding: clamp(18px, 3vw, 26px);
  margin: 22px 0;
}

.bbs-composer h2,
.bbs-reply-box h3 { color: #2f5f58; margin: 0 0 16px; }
.bbs-field { display: grid; gap: 7px; margin: 0 0 16px; }
.bbs-field label { color: #405f59; font-weight: 800; }
.bbs-field input[type="text"],
.bbs-field input[type="date"],
.bbs-field input[type="number"],
.bbs-field select,
.bbs-field textarea {
  width: 100%;
  border: 1px solid rgba(61, 143, 131, 0.35);
  border-radius: 14px;
  background: #fff;
  color: #303f3c;
  font: inherit;
  font-size: 16px;
  line-height: 1.65;
  padding: 12px 14px;
}
.bbs-field textarea { min-height: 138px; resize: vertical; }
.bbs-field input:focus,
.bbs-field select:focus,
.bbs-field textarea:focus { border-color: #3d8f83; outline: 3px solid rgba(111, 183, 168, 0.18); }
.bbs-help { color: #71837e; font-size: 0.88rem; }

.bbs-file-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  border: 1px dashed rgba(61, 143, 131, 0.48);
  border-radius: 14px;
  background: #fff;
  color: #3d8f83;
  cursor: pointer;
  font-weight: 800;
  padding: 11px 14px;
}
.bbs-file-label input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.bbs-selected-files { display: grid; gap: 6px; color: #526762; font-size: 0.9rem; margin-top: 9px; }
.bbs-progress { color: #3d8f83; font-weight: 700; min-height: 1.6em; margin: 10px 0; }

.bbs-form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.bbs-back { margin-bottom: 18px; }
.bbs-thread-detail { border-bottom: 1px solid rgba(111, 183, 168, 0.24); padding-bottom: 24px; }
.bbs-thread-detail h2 { color: #2f5f58; font-size: clamp(1.55rem, 3vw, 2.15rem); line-height: 1.4; margin: 0 0 12px; overflow-wrap: anywhere; }
.bbs-body { white-space: pre-wrap; overflow-wrap: anywhere; color: #40524e; margin: 18px 0; }

.bbs-attachments { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.bbs-attachment { margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid rgba(111, 183, 168, 0.22); background: #f3f7f6; }
.bbs-attachment img,
.bbs-attachment video { width: 100%; max-height: 440px; display: block; object-fit: contain; background: #eef4f2; }
.bbs-attachment figcaption { padding: 8px 11px; color: #60736e; font-size: 0.82rem; overflow-wrap: anywhere; }

.bbs-replies { display: grid; gap: 14px; margin: 22px 0; }
.bbs-replies-heading { color: #2f5f58; font-size: 1.3rem; margin: 28px 0 0; }
.bbs-reply { border: 1px solid rgba(111, 183, 168, 0.2); border-radius: 18px; padding: 17px 18px; background: #fff; }
.bbs-reply .bbs-body { margin: 12px 0; }

.bbs-post-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}
.bbs-delete-button {
  appearance: none;
  border: 1px solid rgba(170, 65, 55, 0.35);
  border-radius: 12px;
  background: #fff7f6;
  color: #9b3027;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 9px 13px;
}
.bbs-delete-button:hover { background: #fff0ee; }
.bbs-delete-button:focus { outline: 3px solid rgba(155, 48, 39, 0.14); outline-offset: 2px; }
.bbs-delete-button:disabled { cursor: wait; opacity: 0.6; }

.bbs-safety-note { color: #6b7d79; font-size: 0.88rem; margin-top: 22px; }

@media (max-width: 720px) {
  .bbs-main { padding: 24px 13px 56px; }
  .bbs-shell { border-radius: 22px; padding: 20px 15px; }
  .bbs-heading { display: grid; }
  .bbs-heading .bbs-button { width: 100%; }
  .bbs-toolbar { align-items: flex-start; flex-direction: column; }
  .bbs-attachments { grid-template-columns: 1fr; }
  .bbs-button { min-height: 48px; }
}
