/* お便りフォーム：選んだ公演のテーマだけをカードで見せる
   テーマと例文は、ページの編集画面にある「お便りテーマ」ブロック（.fmp-theme-source）に書く。
   JS（theme.js）がそれを読み取り、フォーム内（.fmp-performance-theme）にカードを出す。 */

/* 編集画面で書く元データ。JS が読み取ったら公開ページでは隠す */
.fmp-theme-source.is-read { display: none !important; }
/* JS が動かなかったときの見え方（テーマ一覧としてそのまま読める） */
.fmp-theme-source { margin: 0 0 30px; padding: 20px 23px; border-radius: 5px; background: #F6EFDA; font-size: 15px; line-height: 1.8; }
.fmp-theme-source .fmp-theme-source__note { margin: 0 0 12px; font-size: 13px; color: #6B6157; }
.fmp-theme-source .fmp-theme-item + .fmp-theme-item { margin-top: 16px; }
.fmp-theme-source .fmp-theme-item p { margin: 0; }
.fmp-theme-source .fmp-theme-item__title { font-weight: 700; }
.fmp-theme-source .fmp-theme-item ul { margin: 4px 0 0; padding-left: 1.4em; }

/* フォーム内の表示場所 */
#letter-form .fmp-performance-theme.is-enhanced { margin: 0 0 30px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
#letter-form .fmp-performance-theme.is-enhanced > p { display: none; } /* 以前の書き方（フォーム内の一覧）が残っていても出さない */
#letter-form .fmp-performance-theme.is-enhanced.is-empty { display: none; }

.fmp-theme-hint, .fmp-theme-card, .fmp-theme-card * { box-sizing: border-box; }
.fmp-theme-hint[hidden], .fmp-theme-card[hidden] { display: none !important; }

/* 公演を選ぶ前 */
.fmp-theme-hint {
  display: flex; align-items: center; gap: 12px;
  min-height: 64px; padding: 14px 22px;
  border: 1px dashed #B4AC9B; border-radius: 5px;
  color: #6B6157; font-size: 14px; font-weight: 400; line-height: 1.8; letter-spacing: 0.04em;
}
.fmp-theme-hint svg { flex-shrink: 0; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* 公演を選んだ後：その回のテーマ */
.fmp-theme-card {
  display: flex; flex-direction: column;
  padding: 22px 24px;
  border-radius: 5px; background: #F6EFDA; color: #372D21;
}
.fmp-theme-card__head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.fmp-theme-card__pill {
  display: flex; align-items: center; gap: 7px; flex-shrink: 0;
  height: 26px; padding: 0 12px; border-radius: 13px;
  background: #372D21; color: #F7D75C;
  font-size: 11px; font-weight: 500; line-height: 1; letter-spacing: 0.22em;
}
.fmp-theme-card__pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.fmp-theme-card__meta { font-size: 13px; font-weight: 500; line-height: 1.6; letter-spacing: 0.06em; }
.fmp-theme-card__title { margin-top: 14px; font-size: 24px; font-weight: 700; line-height: 1.5; letter-spacing: 0.06em; overflow-wrap: anywhere; }
.fmp-theme-card__sub { margin-top: 8px; font-size: 13px; font-weight: 400; line-height: 1.8; letter-spacing: 0.04em; }
.fmp-theme-card__sub:empty { display: none; }

.fmp-theme-card.is-in { animation: fmpThemeIn 0.45s ease both; }
@keyframes fmpThemeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fmp-theme-card.is-in { animation: none; } }

@media (max-width: 700px) {
  .fmp-theme-hint { min-height: 0; padding: 12px 16px; font-size: 13px; }
  .fmp-theme-card { padding: 18px 18px 20px; }
  .fmp-theme-card__title { margin-top: 12px; font-size: 20px; }
  /* スマホでは「テーマ＋例」の薄い文字が収まるよう、お便り欄を少し高くする */
  #letter-form textarea[name="letter-message"] { min-height: 240px; }
}
