/* 3案共通：画像の差し替え枠・「イメージ」タグ・補助クラス。配色は各案の --ph-* で上書きする */

figure.gen,
figure.portrait {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: var(--ratio, 4 / 3);
  background: var(--ph-bg, #ece8df);
}
figure.gen > img,
figure.portrait > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
figure.is-missing > img { display: none; }

.ph-box {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .3em;
  padding: 1em;
  text-align: center;
  color: var(--ph-ink, #5b5548);
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, var(--ph-line, rgba(0,0,0,.05)) 14px 15px),
    var(--ph-bg, #ece8df);
  font-size: 14px;
  line-height: 1.5;
}
.ph-box .ph-kind { font-weight: 700; letter-spacing: .04em; }
.ph-box .ph-file {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 13px;
  word-break: break-all;
  padding: .15em .5em;
  background: rgba(255,255,255,.7);
  border-radius: 3px;
}
.ph-box .ph-ratio { font-size: 12px; opacity: .8; }
figure.portrait .ph-box .ph-kind { font-size: 15px; }

/* 生成画像にだけ付く「イメージ」タグ（実写には付けない） */
.img-tag {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  padding: 2px 8px;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: .08em;
  color: #fff;
  background: rgba(0, 0, 0, .55);
  border-radius: 2px;
  pointer-events: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* 打合せで確定する箇所の目印 */
.tbd {
  display: inline-block;
  margin-left: .35em;
  padding: 0 .45em;
  font-size: .78em;
  font-weight: 700;
  line-height: 1.7;
  color: var(--tbd-ink, #7a4b00);
  background: var(--tbd-bg, #fff1cc);
  border: 1px solid var(--tbd-line, #e8c66a);
  border-radius: 3px;
  vertical-align: .1em;
  white-space: nowrap;
}

.sp-cta { transition: transform .25s ease; }
.sp-cta.is-hidden { transform: translateY(110%); }
@media (prefers-reduced-motion: reduce) {
  .sp-cta { transition: none; }
  html { scroll-behavior: auto !important; }
}

/* 保険薬局としてのご案内（院内掲示事項）：文字で掲載し、項目ごとに更新日を持つ */
.notice-table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: 16.5px; line-height: 1.7; }
.notice-table th, .notice-table td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--notice-line, #d9d2c4); }
.notice-table thead th { font-size: 14px; font-weight: 700; color: var(--notice-head-ink, inherit); background: var(--notice-head-bg, rgba(0,0,0,.04)); border-bottom-width: 2px; }
.notice-table tbody th { font-weight: 700; width: 46%; }
.notice-table .upd { width: 7em; white-space: nowrap; }
@media (max-width: 640px) {
  .notice-table thead { display: none; }
  .notice-table tr { display: grid; grid-template-columns: 1fr auto; padding: 10px 0; border-bottom: 1px solid var(--notice-line, #d9d2c4); }
  .notice-table tbody th { grid-column: 1 / -1; width: auto; padding: 0 0 4px; border: 0; }
  .notice-table td { padding: 0; border: 0; }
  .notice-table .upd::before { content: "更新日 "; font-size: 13px; }
}

/* 見本サイトの帯（公開時は削除） */
.preview-band {
  position: relative;
  z-index: 60;
  padding: 6px 16px;
  font: 13px/1.6 system-ui, sans-serif;
  color: #fff;
  background: #333;
  text-align: center;
}
.preview-band a { color: #ffe08a; }
