/* ===== 絵馬の見た目(スマホと大画面で共通) =====
   大きさは .ema-wrap の font-size で全体が拡大縮小します */

/* 影は外側の箱につける(絵馬の形の切り抜きで影が消えないように) */
.ema-wrap {
  position: relative;
  display: inline-block;
  filter: drop-shadow(0 0.3em 0.5em rgba(0, 0, 0, 0.35));
}

.ema {
  --cat: #b07a1c;
  position: relative;
  width: 12em;
  padding: 0.32em;
  background: linear-gradient(160deg, #9a6a3a, #6e4520);
  clip-path: polygon(50% 0, 100% 22%, 100% 100%, 0 100%, 0 22%);
  box-sizing: border-box;
}

.ema-body {
  position: relative;
  min-height: 8.6em;
  padding: 2.5em 0.9em 0.7em;
  box-sizing: border-box;
  clip-path: polygon(50% 0, 100% 22%, 100% 100%, 0 100%, 0 22%);
  background:
    repeating-linear-gradient(92deg, rgba(120, 78, 30, 0.07) 0 0.18em, transparent 0.18em 0.7em),
    linear-gradient(170deg, #f4dcae, #e6c088 60%, #d9ad70);
  color: #2b1a0e;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* 紐を通す穴と赤い紐 */
.ema-body::before {
  content: '';
  position: absolute;
  top: 0.95em;
  left: 50%;
  width: 0.5em;
  height: 0.5em;
  margin-left: -0.25em;
  border-radius: 50%;
  background: #5a3716;
  box-shadow: 0 0 0 0.12em #c8361f;
}
.ema-body::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 0.12em;
  height: 1em;
  margin-left: -0.06em;
  background: #c8361f;
}

.ema-stamp {
  display: inline-block;
  padding: 0.12em 0.6em;
  border: 0.1em solid var(--cat);
  border-radius: 0.2em;
  color: var(--cat);
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.35);
}

.ema-wish {
  flex: 1;
  display: flex;
  align-items: center;
  margin: 0.35em 0 0.3em;
  font-family: 'Hiragino Mincho ProN', 'Yu Mincho', 'YuMincho', serif;
  font-weight: 700;
  font-size: 1.05em;
  line-height: 1.4;
  word-break: break-all;
}

.ema-name {
  align-self: flex-end;
  font-size: 0.75em;
  opacity: 0.8;
}
.ema-name::before { content: '― '; }
