/* Google AdSense の広告枠（templates/macros/adsense.html）
   ナビやコンテンツと見間違えないよう、「広告」ラベルを上に小さく付ける。
   サイズはテンプレートが CSS 変数 --ad-w / --ad-h で渡す（値は sake_app/adsense.py）。
*/

.ad-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.ad-slot__label {
  align-self: flex-start;
  color: var(--muted, #6b7280);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.08em;
}

/* 固定サイズの広告 */
.ad-slot__fixed {
  display: inline-block;
  width: var(--ad-w);
  height: var(--ad-h);
}

/* レスポンシブの広告は幅いっぱい（幅0のままだと AdSense がサイズを決められない） */
.ad-slot__responsive {
  display: block;
  width: 100%;
}

/* 開発環境の点線枠 */
.ad-slot__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: var(--ad-w, 100%);
  max-width: 100%;
  height: var(--ad-h, 250px);
  border: 1px dashed var(--border, #e5e7eb);
  border-radius: var(--radius-s, 8px);
  background: var(--surface-2, #f5f5f5);
  color: var(--muted, #6b7280);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-align: center;
  overflow-wrap: anywhere;
}
