/* ===== リセット ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }

/* ===== ベース ===== */
body {
  background-color: #fdf4e9;
  font-family: 'M PLUS Rounded 1c', 'Noto Sans JP', sans-serif;
  color: #2c2c2c;
  min-height: 100vh;
  padding: 20px;
}

/* ===== パッチワーク背景 ===== */
#bg-patchwork {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: grid;
  grid-template-columns: 30% 40% 30%;
  grid-template-rows: 40% 30% 30%;
  opacity: 0.3;
  pointer-events: none;
}

#bg-patchwork img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* coffee-beans: 左上 */
#bg-patchwork img:nth-child(1) { grid-column: 1; grid-row: 1; }
/* cupcakes: 右上 */
#bg-patchwork img:nth-child(2) { grid-column: 3; grid-row: 1; }
/* macarons: 中央・縦2行span（超縦長を活かす） */
#bg-patchwork img:nth-child(3) { grid-column: 2; grid-row: 1 / 3; }
/* choco-bar: 左・縦2行span */
#bg-patchwork img:nth-child(4) { grid-column: 1; grid-row: 2 / 4; }
/* truffles: 右中 */
#bg-patchwork img:nth-child(5) { grid-column: 3; grid-row: 2; }
/* choco-blocks: 中〜右下・横2列span（横長を活かす） */
#bg-patchwork img:nth-child(6) { grid-column: 2 / 4; grid-row: 3; }

/* ===== ヘッダー ===== */
header {
  text-align: center;
  padding: 16px 0 16px;
  margin-bottom: 32px;
  border-bottom: 2px solid #d4a574;
}

header h1 {
  font-family: 'Caveat', cursive;
  font-size: 2.8rem;
  color: #5c2d0e;
  letter-spacing: 2px;
  transform: rotate(-1deg);
  display: inline-block;
}

header p {
  font-size: 0.85rem;
  color: #a07858;
  margin-top: 6px;
}

/* ===== コンテナ ===== */
.container {
  max-width: 680px;
  margin: 0 auto;
}

/* ===== カード ===== */
.card {
  background: rgba(255, 250, 243, 0.95);
  border: 2px solid #d4a574;
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 20px;
  box-shadow: 4px 4px 0 #c09060;
  transform: rotate(-0.3deg);
}

.card:nth-child(even) {
  transform: rotate(0.3deg);
}

/* ===== ページタイトル・ナビゲーション ===== */
.page-title {
  font-family: 'Caveat', cursive;
  font-size: 1.8rem;
  color: #5c2d0e;
  transform: rotate(-0.5deg);
  display: inline-block;
}

.back-link {
  font-family: 'Caveat', cursive;
  color: #a07858;
  cursor: pointer;
  font-size: 1rem;
  margin-bottom: 16px;
  display: inline-block;
  text-decoration: none;
}

.back-link:hover { color: #5c2d0e; }

.top-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 10px;
  flex-wrap: wrap;
}

.home-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.board-title-block {
  min-width: 0;
  flex: 1;
}

.board-title-block .page-title {
  word-break: break-word;
}

.board-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* ===== ボタン ===== */
.btn {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 10px 28px;
  border: 2px solid #7B3520;
  border-radius: 20px;
  background: #fff8f2;
  color: #7B3520;
  cursor: pointer;
  box-shadow: 3px 3px 0 #7B3520;
  transition: transform 0.1s, box-shadow 0.1s;
  display: inline-block;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 #7B3520;
}

.btn:active {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 #7B3520;
}

.btn-primary {
  background: #7B3520;
  color: #fff;
}

.btn-sm {
  font-size: 0.85rem;
  padding: 6px 16px;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ===== バッジ ===== */
.badge {
  display: inline-block;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 12px;
  background: #f5e0d0;
  color: #8a4a2a;
  border: 1px solid #d4a574;
  margin-left: 6px;
  vertical-align: middle;
}

.badge.public {
  background: #d5e8d5;
  color: #3a6a3a;
  border-color: #a0c8a0;
}

.badge.badge-pending {
  background: #fff3cd;
  color: #856404;
  border-color: #ffc107;
}

/* ===== 掲示板一覧 ===== */
.board-item {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0 14px 36px;
  border-bottom: 1px dashed #d4a574;
  cursor: pointer;
  transition: opacity 0.2s;
}

.board-item:last-child { border-bottom: none; }
.board-item:hover { opacity: 0.75; }

.board-item h3 {
  font-family: 'Caveat', cursive;
  font-size: 1.4rem;
  color: #5c2d0e;
}

.board-item .meta {
  font-size: 0.75rem;
  color: #a07858;
  text-align: right;
  flex-shrink: 0;
  margin-left: 12px;
}

.board-item.pinned-row {
  background: rgba(255, 240, 200, 0.5);
  border-radius: 10px;
}

/* ===== 画鋲ボタン ===== */
.pin-btn {
  position: absolute;
  left: 2px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.15rem;
  padding: 4px;
  line-height: 1;
  opacity: 0.25;
  transition: opacity 0.15s, transform 0.15s;
}

.pin-btn:hover {
  opacity: 0.6;
  transform: translateY(-50%) rotate(-15deg);
}

.pin-btn.pinned {
  opacity: 1;
  transform: translateY(-50%) rotate(-20deg);
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.25));
}

/* ===== セクションラベル ===== */
.section-label {
  font-family: 'Caveat', cursive;
  font-size: 0.9rem;
  color: #b89060;
  letter-spacing: 1px;
  padding: 8px 0 4px 36px;
  border-bottom: 1px solid #d8c8a0;
  margin-bottom: 2px;
}

/* ===== 掲示板スティッキーヘッダー ===== */
.board-sticky-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: #fdf4e9;
  padding: 12px 0 10px;
  margin-bottom: 4px;
  box-shadow: 0 3px 8px rgba(180, 130, 80, 0.25);
}

.board-sticky-header .top-actions {
  margin-bottom: 10px;
}

/* ===== チョコタイマー（個別ピース型） ===== */
.choco-pieces-wrap {
  margin-bottom: 10px;
  min-height: 36px;
}

.choco-pieces {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.choco-piece {
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 4px;
  position: relative;
  box-shadow: 0 3px 0 rgba(0,0,0,0.35), inset 0 1px 3px rgba(255,220,150,0.18);
  transform-origin: bottom center;
}

.choco-piece::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  height: 7px;
  background: linear-gradient(180deg, rgba(255,230,160,0.28) 0%, transparent 100%);
  border-radius: 3px;
  pointer-events: none;
}

.choco-piece::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: rgba(0,0,0,0.18);
  border-radius: 0 0 5px 5px;
  pointer-events: none;
}

.choco-piece.melting {
  animation: choco-melt-away 1.2s ease-in forwards;
}

@keyframes choco-melt-away {
  0%   { transform: scaleY(1) translateY(0);      opacity: 1;   }
  25%  { transform: scaleY(0.85) translateY(4px);  opacity: 0.9; }
  70%  { transform: scaleY(0.3) translateY(10px);  opacity: 0.5; }
  100% { transform: scaleY(0) translateY(14px);    opacity: 0;   }
}

.timer-text {
  font-size: 0.8rem;
  color: #a07858;
  text-align: right;
}

/* ===== 引用 ===== */
.quote-block {
  border-left: 3px solid #d4a574;
  padding: 5px 10px;
  margin-bottom: 6px;
  background: rgba(212, 165, 116, 0.1);
  border-radius: 0 8px 8px 0;
}

.quote-name {
  font-size: 0.72rem;
  color: #8a5a30;
  font-weight: bold;
  display: block;
  margin-bottom: 2px;
}

.quote-text {
  font-size: 0.78rem;
  color: #a07858;
  display: block;
  word-break: break-word;
}

.quote-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 165, 116, 0.15);
  border-left: 3px solid #c08040;
  padding: 6px 10px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 8px;
  font-size: 0.8rem;
  color: #7a4a20;
}

.quote-preview span {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-cancel-quote {
  background: none;
  border: none;
  color: #c09060;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 2px 4px;
  flex-shrink: 0;
}

.btn-cancel-quote:hover { color: #7a4a20; }

.btn-quote {
  background: none;
  border: 1px solid #d4a574;
  border-radius: 12px;
  color: #a07858;
  cursor: pointer;
  font-size: 0.72rem;
  padding: 2px 8px;
  margin-left: auto;
  display: block;
}

.btn-quote:hover {
  background: rgba(212, 165, 116, 0.15);
  color: #7B3520;
}

/* ===== メッセージ ===== */
.card-header-row {
  margin-bottom: 12px;
}

.card-section-title {
  font-family: 'Caveat', cursive;
  font-size: 1.1rem;
  color: #5c2d0e;
}

.messages {
  list-style: none;
}

.message {
  padding: 14px 0;
  border-bottom: 1px dashed #d4a574;
}

.message:last-child { border-bottom: none; }

.message-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.message-name {
  font-family: 'Caveat', cursive;
  font-size: 1.1rem;
  color: #5c2d0e;
  font-weight: 700;
}

.message-uid {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 0.72rem;
  color: #d4a574;
  font-weight: 400;
  margin-left: 6px;
  letter-spacing: 0.5px;
}

.message-time {
  font-size: 0.75rem;
  color: #b89060;
}

.message-body {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #3c2c1c;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ===== フォーム ===== */
.card-post-form {
  background: rgba(255, 252, 247, 0.98);
}

.form-group { margin-bottom: 14px; }

label {
  font-family: 'Caveat', cursive;
  font-size: 1.1rem;
  color: #5c2d0e;
  display: block;
  margin-bottom: 4px;
}

input:not([type="radio"]):not([type="checkbox"]),
textarea {
  width: 100%;
  padding: 8px 12px;
  border: 2px solid #d4a574;
  border-radius: 10px;
  background: rgba(255, 252, 247, 0.9);
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 0.95rem;
  color: #2c2c2c;
  outline: none;
  transition: border-color 0.2s;
}

input:not([type="radio"]):not([type="checkbox"]):focus,
textarea:focus { border-color: #7B3520; }
textarea { resize: vertical; min-height: 80px; }

.radio-group {
  display: flex;
  gap: 20px;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 1rem;
}

/* ===== 空・エラー表示 ===== */
.empty {
  text-align: center;
  padding: 32px;
  color: #b89060;
  font-family: 'Caveat', cursive;
  font-size: 1.2rem;
}

.expired-box, .error-box, .pending-box {
  text-align: center;
  padding: 48px 24px;
}

.expired-box .page-title,
.error-box .page-title,
.pending-box .page-title {
  display: block;
  margin-bottom: 12px;
}

.expired-box p,
.error-box p,
.pending-box p {
  color: #b89060;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.pending-countdown {
  font-size: 1.4rem;
  font-weight: bold;
  color: #7B3520;
  letter-spacing: 0.05em;
  margin-bottom: 24px !important;
}

.form-hint {
  font-size: 0.78rem;
  color: #b89060;
  margin-top: 4px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.9rem;
}

/* ===== モーダル ===== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(60, 30, 10, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
  overflow-y: auto;
}

.modal-inner {
  width: 100%;
  max-width: 480px;
  transform: none !important;
}

.modal-title {
  font-family: 'Caveat', cursive;
  font-size: 1.6rem;
  color: #5c2d0e;
  margin-bottom: 16px;
}

.modal-form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  gap: 8px;
}

.remaining-count {
  font-size: 0.8rem;
  color: #b89060;
  flex-shrink: 0;
}

.modal-btns {
  display: flex;
  gap: 10px;
}

/* ===== 文字数カウンター ===== */
.char-count {
  font-size: 0.75rem;
  color: #b89060;
  text-align: right;
  margin-top: 4px;
}

.char-count.warn { color: #c06040; }

/* ===== 手書きフォント5種 ===== */
.font-klee    { font-family: 'Klee One', cursive; }
.font-yomogi  { font-family: 'Yomogi', cursive; }
.font-zen     { font-family: 'Zen Kurenaido', sans-serif; }
.font-yuji    { font-family: 'Yuji Syuku', serif; }
.font-hina    { font-family: 'Hina Mincho', serif; }

/* ===== 自分の投稿 ===== */
.message.mine {
  background: rgba(255, 220, 170, 0.4);
  border-radius: 10px;
  padding: 12px 12px;
  margin: 2px -12px;
}

.message.mine .message-name::after {
  content: ' (自分)';
  font-size: 0.75rem;
  color: #c08040;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-weight: 400;
}

.message.mine .message-body {
  font-size: 1.05rem;
}

/* ===== 作成者名 ===== */
.board-creator {
  font-size: 0.75rem;
  color: #b89060;
  margin-top: 3px;
}

/* ===== フォント選択モーダル ===== */
.font-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 2px solid #d4a574;
  border-radius: 12px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  background: rgba(255, 252, 247, 0.95);
}

.font-option:hover {
  border-color: #7B3520;
  background: rgba(255, 248, 240, 0.9);
}

.font-option.selected {
  border-color: #7B3520;
  background: rgba(255, 220, 170, 0.3);
  box-shadow: 2px 2px 0 #7B3520;
}

.font-option-label {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 0.85rem;
  color: #a07858;
  width: 110px;
  flex-shrink: 0;
}

.font-option-preview {
  font-size: 1.2rem;
  color: #5c2d0e;
  flex: 1;
}

/* ===== 作成完了・シェアモーダル ===== */
.share-success-icon {
  font-size: 2.4rem;
  text-align: center;
  display: block;
  margin-bottom: 6px;
}

.share-note {
  font-size: 0.85rem;
  color: #a07858;
  margin-bottom: 16px;
  line-height: 1.6;
}

.share-note-private {
  background: rgba(255, 230, 200, 0.5);
  border: 1px solid #e8c090;
  border-radius: 10px;
  padding: 10px 12px;
  color: #7a4a20;
}

.share-url-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 248, 240, 0.9);
  border: 2px solid #d4a574;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 6px;
}

.share-url-text {
  flex: 1;
  font-size: 0.78rem;
  color: #7a5030;
  word-break: break-all;
  font-family: monospace;
  line-height: 1.5;
}

.copy-feedback {
  font-size: 0.8rem;
  color: #5a8a4a;
  min-height: 1.2em;
  margin-bottom: 14px;
  text-align: right;
}

.share-btns {
  display: flex;
  gap: 10px;
  margin-bottom: 4px;
}

.share-btn-native {
  flex: 1;
  background: #7B3520;
  color: #fff;
  border-color: #7B3520;
  box-shadow: 3px 3px 0 #3d1a00;
  font-size: 1rem;
  padding: 12px;
  min-height: 48px;
}

.share-btn-native:hover {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 #3d1a00;
}

.share-btn-line {
  flex: 1;
  background: #06c755;
  color: #fff;
  border: 2px solid #06c755;
  border-radius: 20px;
  box-shadow: 3px 3px 0 #049a40;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 1rem;
  padding: 12px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
}

.share-btn-line:hover {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 #049a40;
}

@media (max-width: 480px) {
  .share-btns {
    flex-direction: column;
  }
}

/* ===== 利用規約ページ ===== */
.terms-updated {
  font-size: 0.8rem;
  color: #b89060;
  margin-bottom: 16px;
}

.terms-intro {
  font-size: 0.9rem;
  line-height: 1.8;
  color: #5a4a3a;
  margin-bottom: 24px;
  padding: 12px 16px;
  background: rgba(212, 165, 116, 0.12);
  border-left: 3px solid #d4a574;
  border-radius: 0 10px 10px 0;
}

.terms-section {
  margin-bottom: 28px;
}

.terms-h3 {
  font-family: 'Caveat', cursive;
  font-size: 1.2rem;
  color: #5c2d0e;
  margin-bottom: 10px;
  padding-bottom: 4px;
  border-bottom: 1px dashed #d4a574;
}

.terms-list {
  font-size: 0.9rem;
  line-height: 1.9;
  color: #3c2c1c;
  padding-left: 20px;
}

.terms-sublist {
  margin-top: 6px;
  margin-left: 16px;
  list-style: disc;
}

/* ===== ウォーターマーク ===== */
.watermark-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  background-repeat: repeat;
  border-radius: 14px;
  z-index: 0;
}

.watermark-overlay ~ * {
  position: relative;
  z-index: 1;
}

/* ===== フッター ===== */
/* ===== ToyRo バナー ===== */
.toyro-banner {
  margin-top: 48px;
  padding: 24px 16px;
  text-align: center;
  border-top: 1px solid #e8d0b0;
}

.toyro-banner__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.toyro-banner__link:hover {
  opacity: 1;
}

.toyro-banner__logo {
  height: 28px;
  width: auto;
}

.toyro-banner__label {
  font-size: 0.72rem;
  color: #a07858;
  letter-spacing: 0.08em;
}

.site-footer {
  text-align: center;
  padding: 20px 0 12px;
  font-size: 0.8rem;
  color: #b89060;
}

.footer-link {
  color: #a07858;
  text-decoration: none;
}

.footer-link:hover {
  color: #7B3520;
  text-decoration: underline;
}

.footer-sep {
  margin: 0 8px;
  color: #d4b896;
}

/* ===== スマートフォン対応（480px以下） ===== */
@media (max-width: 480px) {
  body {
    padding: 12px;
  }

  header {
    padding: 16px 0 12px;
    margin-bottom: 20px;
  }

  header h1 {
    font-size: 2.2rem;
  }

  .card {
    padding: 16px;
    transform: none;
  }

  .card:nth-child(even) {
    transform: none;
  }

  .top-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
  }

  .home-actions,
  .board-actions {
    width: 100%;
    gap: 8px;
  }

  .home-actions .btn,
  .board-actions .btn {
    flex: 1;
    text-align: center;
    padding: 10px 8px;
    min-height: 44px;
  }

  .home-actions .btn-primary {
    flex: 2;
  }

  .board-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 0 12px 36px;
  }

  .board-item .meta {
    text-align: left;
    margin-left: 0;
  }

  .message-header {
    flex-direction: row;
    align-items: center;
  }

  .message-time {
    font-size: 0.7rem;
  }

  .board-item.pinned-row {
    background: rgba(255, 240, 200, 0.85);
  }

  .radio-group {
    flex-direction: column;
    gap: 10px;
  }

  .modal {
    align-items: flex-start;
    padding: 12px;
  }

  .modal-inner {
    margin: 8px auto;
    width: 100%;
  }

  .modal-form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .modal-btns {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .modal-btns .btn {
    width: 100%;
    text-align: center;
    padding: 14px;
    font-size: 1.1rem;
    min-height: 50px;
  }

  .radio-group label {
    padding: 10px 12px;
    border: 1px solid #d4a574;
    border-radius: 10px;
    background: rgba(255,252,247,0.7);
    width: 100%;
  }

  .btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .btn-sm {
    min-height: 38px;
  }
}

/* =========================================
   スタンプリアクション
   ========================================= */
.message-stamps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
}

.reaction-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.stamp-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 9px;
  border: 1px solid rgba(180, 120, 60, 0.4);
  border-radius: 20px;
  background: rgba(255, 235, 205, 0.9);
  cursor: pointer;
  font-size: 1.05rem;
  line-height: 1.4;
  transition: background 0.15s, transform 0.1s, border-color 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.stamp-btn:hover {
  background: rgba(255, 225, 185, 0.98);
  transform: scale(1.1);
}

.stamp-btn:active {
  transform: scale(0.93);
}

.stamp-btn.active {
  /* カード背景・オレンジ系スタンプ色と競合しないよう、白背景＋濃い枠線でくっきり出す */
  background: #fff;
  border: 2px solid #d4771f;
  box-shadow: 0 1px 3px rgba(120, 72, 20, 0.25);
}

.stamp-btn.active .stamp-count {
  color: #5c2d0e;
  font-weight: 800;
}

.stamp-btn.reacted {
  /* disabled属性は使わず、cursorのみ変更して絵文字の色を保つ */
  cursor: default;
}

.stamp-count {
  font-size: 0.72rem;
  font-weight: 700;
  color: #9a6840;
  min-width: 8px;
}

.message-header-right {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.stamp-add-wrapper {
  position: relative;
}

.stamp-add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px dashed rgba(180, 120, 60, 0.3);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
  opacity: 0.5;
  transition: opacity 0.15s, background 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.stamp-add-btn:hover {
  opacity: 1;
  background: rgba(255, 248, 240, 0.8);
}

.stamp-picker {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: rgba(255, 252, 247, 0.98);
  border: 1px solid rgba(180, 120, 60, 0.2);
  border-radius: 24px;
  padding: 6px 8px;
  gap: 4px;
  box-shadow: 0 4px 16px rgba(100, 60, 20, 0.12);
  z-index: 100;
  flex-wrap: nowrap;
}

.stamp-picker.open {
  display: flex;
}

.stamp-pick-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  font-size: 1.3rem;
  transition: background 0.12s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}

.stamp-pick-btn:hover {
  background: rgba(180, 120, 60, 0.08);
  transform: scale(1.2);
}

.stamp-pick-btn:active {
  transform: scale(0.9);
}

/* =========================================
   自分の掲示板セクション
   ========================================= */
.section-label--mine {
  color: #a07858;
}

.board-item.my-board-row {
  border-left: 3px solid #d4a574;
}

.share-icon-btn {
  margin-left: auto;
  padding: 4px 10px;
  font-size: 1rem;
  min-width: 36px;
  flex-shrink: 0;
}

.share-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  justify-content: center;
}

.share-modal-actions .btn {
  flex: 1;
  max-width: 200px;
  text-align: center;
}
