/* ============================================================
   LAVENDER RING A3 ポスターテンプレート
   A3 = 297mm × 420mm
   内部DOMは 1240px × 1754px (about 105dpi)
   書き出し時に pixelRatio:3 で 3720×5262 (~317dpi A3) に拡大
   ============================================================ */

:root {
  --poster-w: 1240px;
  --poster-h: 1754px;
  --pad-x: 92px;
  --poster-w-square: 1080px;
  --poster-h-square: 1080px;
  --poster-w-story: 1080px;
  --poster-h-story: 1920px;
  --color-white: #ffffff;
  --color-purple-deep: #6a3d6f;
  --color-purple-mid: #9c6aa3;

  /* ============================================================
     書体レギュレーション
     Adobe Fonts（kit設定後に表示）→ Google Fonts → システムフォント の3段フォールバック
     Adobe Fonts の正式CSS名はkit設定画面で確認のうえ調整してください
     ============================================================ */

  /* 和文・主役（見出し・象徴コピー） */
  --font-jp-display:
    "tsukushi-a-old-mincho-pr6n",       /* Adobe: 筑紫オールド明朝 Pr6N */
    "Zen Old Mincho",                    /* Google fallback */
    "Hiragino Mincho ProN",
    "Yu Mincho", serif;

  /* 和文・副役（本文・UI） */
  --font-jp-body:
    "kozuka-gothic-pr6n",                /* Adobe: 小塚ゴシック Pr6N */
    "Zen Kaku Gothic New",               /* Google fallback */
    "Hiragino Sans",
    "Yu Gothic", sans-serif;

  /* 欧文・主役（イベント名・ブランド表記） */
  --font-en-display:
    "copperplate",                       /* Adobe: Copperplate */
    "Cinzel",                            /* Google fallback */
    "Trajan Pro", serif;

  /* 欧文・副役（サブタイトル・アクセント） */
  --font-en-body:
    "avenir-next-lt-pro",                /* Adobe: Avenir Next LT Pro */
    "Jost",                              /* Google fallback */
    "Helvetica Neue", sans-serif;
}

/* 共通：ポスター枠 */
.poster {
  position: relative;
  width: var(--poster-w);
  height: var(--poster-h);
  flex-shrink: 0;        /* プレビュー枠で縮まないように固定 */
  overflow: hidden;
  color: var(--color-white);
  font-family: var(--font-jp-display);
  font-weight: 400;
  background: linear-gradient(180deg,
    #e89bbf 0%,
    #d785b5 35%,
    #b878a9 70%,
    #9d6a98 100%);
}

.poster__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.poster__body {
  position: relative;
  z-index: 1;
  padding: 64px var(--pad-x) 40px;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

/* メインコピー（SVG アセット） */
.p-main-asset {
  display: block;
  width: 880px;
  height: auto;
  margin: 0 auto 24px;
}

/* 新サブタイトル（固定：subtitle.svg or プレースホルダ） */
.p-subtitle {
  text-align: center;
  margin: 0 0 18px;
  color: var(--color-white);
}
.p-subtitle__img {
  display: block;
  width: 700px;
  height: auto;
  margin: 0 auto;
}
/* プレースホルダ（Webフォントで暫定描画） */
.p-subtitle--placeholder .p-subtitle__line1 {
  font-family: var(--font-en-display);
  font-weight: 500;
  font-size: 42px;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.p-subtitle--placeholder .p-subtitle__line2 {
  font-family: var(--font-en-body);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: 0.08em;
}

/* 日付帯（可変・白枠） */
.p-datebanner {
  display: flex;
  justify-content: center;
  margin: 0 0 22px;
}
.p-datebanner > span {
  display: inline-block;
  font-family: var(--font-jp-body);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: 0.06em;
  padding: 10px 28px;
  border: 2px solid var(--color-white);
  border-radius: 6px;
  color: var(--color-white);
  white-space: nowrap;
}

/* キャッチ（固定：catch.svg or プレースホルダ） */
.p-catch {
  text-align: center;
  margin: 8px 0 22px;
}
.p-catch__img {
  display: block;
  width: 500px;
  height: auto;
  margin: 0 auto;
}
/* プレースホルダ */
.p-catch--placeholder {
  font-family: var(--font-jp-display);
  font-weight: 500;
  font-size: 44px;
  letter-spacing: 0.04em;
  color: var(--color-white);
}
.p-catch--placeholder .p-catch__l,
.p-catch--placeholder .p-catch__r {
  display: inline-block;
  margin: 0 16px;
  font-size: 44px;
}

/* 写真グリッド 4×2 */
.p-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 32px;
}
.p-cell {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: rgba(255,255,255,0.12);
  border: 1px dashed rgba(255,255,255,0.35);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.p-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.p-cell__placeholder {
  font-family: var(--font-en-body);
  font-size: 18px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.1em;
}

/* 説明文（旧テキスト → SVGアセット） */
.p-desc {
  font-family: var(--font-jp-display);
  font-weight: 400;
  font-size: 21px;
  line-height: 1.65;
  letter-spacing: 0.04em;
  margin: 0 0 16px;
  color: var(--color-white);
}
.p-desc-asset {
  display: block;
  width: 920px;       /* viewBox比率を保ったままA3内に収める */
  height: auto;
  margin: 0 0 18px;
}

/* 詳細枠 + バッジ */
.p-detailrow {
  display: flex;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 14px;
}
.p-detailbox {
  flex: 1;
  border: 2px solid var(--color-white);
  border-radius: 6px;
  padding: 16px 22px;
  display: grid;
  grid-template-columns: repeat(2, auto);
  column-gap: 28px;
  row-gap: 6px;
  font-family: var(--font-jp-body);
  font-weight: 400;
  font-size: 21px;
  line-height: 1.4;
  letter-spacing: 0.03em;
  color: var(--color-white);
  align-content: center;
}
.p-detail-item {
  white-space: nowrap;
}
.p-detail-item .lbl::after {
  content: '：';
}
/* バッジ：白丸（CSS）+ 紫文字SVG画像 */
.p-free-asset {
  flex: 0 0 auto;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.p-free-asset__inner {
  display: block;
  width: 86%;
  height: 86%;
  object-fit: contain;
}

/* フッター */
.p-footer {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.3fr;
  align-items: center;
  gap: 22px;
  padding-top: 10px;
}
.p-footer__logo {
  width: 100%;
  max-width: 280px;
  height: auto;
  filter: brightness(0) invert(1); /* SVGロゴをブランド色→白に変換 */
}

/* お問合せ先（固定：email.svg or プレースホルダ） */
.p-email {
  color: var(--color-white);
}
.p-email__img {
  display: block;
  width: 220px;
  height: auto;
  filter: brightness(0) invert(1);   /* SVG受領時にダーク色なら白化 */
}
/* プレースホルダ */
.p-email--placeholder {
  font-family: var(--font-jp-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: 0.04em;
}
.p-email--placeholder .p-email__label {
  margin-bottom: 2px;
}
.p-email--placeholder .p-email__addr {
  font-family: var(--font-en-body);
  font-size: 17px;
  letter-spacing: 0.03em;
}
.p-footer__qr {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
}
.p-footer__qrtxt {
  font-family: var(--font-jp-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.45;
  text-align: right;
  color: var(--color-white);
}
.p-footer__qrtxt-asset {
  display: block;
  width: 200px;       /* caption-qr.svg 表示幅 */
  height: auto;
  filter: brightness(0) invert(1);  /* 濃グレー → 白 */
}
.p-footer__qrimg {
  width: 96px;
  height: 96px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.p-footer__qrimg img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.p-footer__qrimg img:not([src]),
.p-footer__qrimg img[src=""] {
  display: none;
}

/* ============================================================
   SNS版（v3：新構成に対応）
   ============================================================ */

/* ----- 正方形（Instagram 1080×1080） ----- */
.poster.poster--square {
  width: var(--poster-w-square);
  height: var(--poster-h-square);
}
.poster.poster--square .poster__body {
  padding: 56px 70px 48px;
}
.poster.poster--square .p-main-asset {
  width: 720px;
  margin: 0 auto 18px;
}
.poster.poster--square .p-subtitle {
  margin-bottom: 12px;
}
.poster.poster--square .p-subtitle--placeholder .p-subtitle__line1 {
  font-size: 30px;
}
.poster.poster--square .p-subtitle--placeholder .p-subtitle__line2 {
  font-size: 20px;
}
.poster.poster--square .p-subtitle__img {
  width: 580px;
}
.poster.poster--square .p-datebanner {
  margin-bottom: 14px;
}
.poster.poster--square .p-datebanner > span {
  font-size: 18px;
  padding: 7px 20px;
}
.poster.poster--square .p-catch {
  margin: 6px 0 14px;
}
.poster.poster--square .p-catch--placeholder {
  font-size: 32px;
}
.poster.poster--square .p-catch--placeholder .p-catch__l,
.poster.poster--square .p-catch--placeholder .p-catch__r {
  font-size: 32px;
  margin: 0 10px;
}
.poster.poster--square .p-catch__img {
  width: 360px;
}
/* 正方形では写真 4×1 のみ */
.poster.poster--square .p-grid {
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 1fr;
  gap: 8px;
  margin-bottom: 14px;
}
.poster.poster--square .p-cell:nth-child(n+5) {
  display: none;
}
/* 正方形では説明文・詳細枠を非表示（情報密度の最適化） */
.poster.poster--square .p-desc-asset,
.poster.poster--square .p-detailrow {
  display: none;
}
.poster.poster--square .p-footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding-top: 12px;
}
.poster.poster--square .p-footer__logo {
  max-width: 200px;
}
.poster.poster--square .p-email--placeholder {
  font-size: 14px;
}
.poster.poster--square .p-email--placeholder .p-email__addr {
  font-size: 13px;
}
.poster.poster--square .p-footer__qrimg {
  width: 80px;
  height: 80px;
}
.poster.poster--square .p-footer__qrtxt-asset {
  width: 140px;
}

/* ----- ストーリー（1080×1920） ----- */
.poster.poster--story {
  width: var(--poster-w-story);
  height: var(--poster-h-story);
}
.poster.poster--story .poster__body {
  padding: 90px 80px 70px;
}
.poster.poster--story .p-main-asset {
  width: 840px;
  margin: 0 auto 36px;
}
.poster.poster--story .p-subtitle {
  margin-bottom: 24px;
}
.poster.poster--story .p-subtitle--placeholder .p-subtitle__line1 {
  font-size: 42px;
}
.poster.poster--story .p-subtitle--placeholder .p-subtitle__line2 {
  font-size: 26px;
}
.poster.poster--story .p-subtitle__img {
  width: 720px;
}
.poster.poster--story .p-datebanner {
  margin-bottom: 28px;
}
.poster.poster--story .p-datebanner > span {
  font-size: 22px;
  padding: 9px 26px;
}
.poster.poster--story .p-catch {
  margin: 12px 0 26px;
}
.poster.poster--story .p-catch--placeholder {
  font-size: 44px;
}
.poster.poster--story .p-catch--placeholder .p-catch__l,
.poster.poster--story .p-catch--placeholder .p-catch__r {
  font-size: 44px;
}
.poster.poster--story .p-catch__img {
  width: 500px;
}
.poster.poster--story .p-grid {
  gap: 10px;
  margin-bottom: 32px;
}
.poster.poster--story .p-desc-asset {
  width: 840px;
  margin: 0 auto 22px;
}
.poster.poster--story .p-detailbox {
  font-size: 20px;
}
.poster.poster--story .p-free-asset {
  width: 120px;
  height: 120px;
}
.poster.poster--story .p-email--placeholder {
  font-size: 18px;
}
.poster.poster--story .p-email--placeholder .p-email__addr {
  font-size: 17px;
}
