@charset "UTF-8";

/* ======================================================================
 * ご葬儀プラン 印刷用 A4 チラシ
 * - 6プラン 2×3 グリッド
 * - 印刷時: A4 縦 / 余白 8mm
 * - 画面表示時: A4サイズのプレビューを白紙で表示
====================================================================== */

@page {
  size: A4 portrait;
  margin: 0;
}

/* ====== Reset & Base ====== */
.p-plan-print-body {
  margin: 0;
  padding: 0;
  background: #d9d9d9;
  font-family: "Zen Old Mincho", "Hiragino Mincho ProN", "游明朝", serif;
  color: #2b2b2b;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
  color-adjust: exact;
}

.p-plan-print {
  width: 210mm;
  min-height: 297mm;
  padding: 6mm;
  margin: 0 auto;
  box-sizing: border-box;
  background: #fff;
  display: flex;
  flex-direction: column;
}

/* ====== Header ====== */
.p-plan-print__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 2mm;
  margin-bottom: 5mm;
  border-bottom: 1px solid #c2b5a0;
}
.p-plan-print__brand {
  margin: 0 0 1.5mm;
  line-height: 0;
}
.p-plan-print__brand img {
  height: 9mm;
  width: auto;
  display: block;
}
.p-plan-print__title {
  margin: 0;
  font-size: 18pt;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #2b2b2b;
  line-height: 1;
}
.p-plan-print__title-em {
  color: #c0392b;
}
.p-plan-print__lead {
  margin: 0;
  font-size: 8.5pt;
  line-height: 1.5;
  color: #4d4848;
  text-align: right;
}

/* ====== Grid 2x2 (4プラン) ====== */
.p-plan-print__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: min-content;
  gap: 3mm;
}

/* ====== Card ====== */
.p-plan-print__card {
  display: flex;
  flex-direction: column;
  padding: 2mm 2mm 5mm;
  background: #f6f4f1;
  border-radius: 0 2mm 0 2mm;
  box-sizing: border-box;
  page-break-inside: avoid;
  break-inside: avoid;
}
.p-plan-print__card-image {
  overflow: hidden;
  border-radius: 0 2mm 0 2mm;
  margin-bottom: 1.5mm;
  background: #ddd;
}
.p-plan-print__card-image img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  display: block;
}
/* キャッチコピー(左) + プラン名(右) を横並びに */
.p-plan-print__card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5mm;
  margin-bottom: 1mm;
}
.p-plan-print__card-sub {
  flex: 1;
  font-size: 8pt;
  font-weight: 600;
  line-height: 1.3;
  color: #4d4848;
  margin: 0;
}
.p-plan-print__card-title {
  flex-shrink: 0;
  margin: 0;
  font-size: 14pt;
  font-weight: 700;
  line-height: 1.2;
  color: #2b2b2b;
  text-align: right;
  align-self: center;
  display: flex;
  align-items: center;
}
.p-plan-print__card-title br {
  display: none;
}
.p-plan-print__card-people {
  margin: 0 0 1mm;
  font-size: 6.5pt;
  color: #888;
  line-height: 1.3;
}

/* 工程タグ */
.p-plan-print__card-tags {
  list-style: none;
  margin: 0 0 1.5mm;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5mm;
}
.p-plan-print__card-tags li {
  flex: 1 1 auto;
  text-align: center;
  font-size: 6pt;
  line-height: 1;
  padding: 0.8mm 0.6mm;
  background: #7e6b4f;
  color: #fff;
  border-radius: 0.8mm;
  white-space: nowrap;
}
.p-plan-print__card-tags li.out {
  background: transparent;
  border: 0.3mm solid #a8967b;
  color: #a8967b;
  padding: calc(0.8mm - 0.3mm) calc(0.6mm - 0.3mm);
}

/* バッジ（割引対象のみ） */
.p-plan-print__card-badge {
  display: block;
  margin: auto 0 1.5mm;
  padding: 1.5mm 1mm;
  background: #2e5d3a;
  color: #fff;
  font-size: 8.5pt;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  border-radius: 1mm;
  letter-spacing: 0.02em;
}
.p-plan-print__card-badge strong {
  font-weight: 700;
  font-size: 11pt;
  color: #fff258;
  margin: 0 0.5mm;
}

/* 価格ブロック (通常価格 + ▼ + WEB限定価格) */
.p-plan-print__card-price-group {
  margin-top: 1mm;
  display: flex;
  flex-direction: column;
}

/* 価格（中央寄せ） */
.p-plan-print__card-price {
  margin-top: 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 1mm;
  color: #a83a44;
  font-weight: 700;
  line-height: 1.1;
}
.p-plan-print__card-price.is-single {
  justify-content: center;
}
.p-plan-print__card-price-label {
  font-size: 9pt;
  font-weight: 600;
  color: #2b2b2b;
  margin-right: 1mm;
  align-self: baseline;
}
.p-plan-print__card-price-label-em {
  color: #c0392b;
}
.p-plan-print__card-price-num {
  font-size: 20pt;
  letter-spacing: -0.01em;
}
.p-plan-print__card-price-unit {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  align-self: stretch;
  font-size: 10pt;
  font-weight: 600;
  line-height: 1;
  margin-left: 1mm;
}
.p-plan-print__card-price-unit small {
  display: block;
  font-size: 7pt;
  font-weight: 400;
  color: #888;
  line-height: 1;
}
.p-plan-print__card-price-unit > span {
  display: block;
  line-height: 1;
}
.p-plan-print__card-price-sub {
  margin: 0;
  font-size: 9pt;
  color: #4d4848;
  font-weight: 500;
  text-align: center;
}

/* 通常価格 → 割引価格 の矢印（中央寄せ） */
.p-plan-print__card-price-arrow {
  margin: 0.5mm 0;
  font-size: 10pt;
  color: #2b2b2b;
  text-align: center;
  line-height: 1;
}

/* ====== 最下部 会社情報バナー画像 ====== */
.p-plan-print__company {
  margin-top: auto;
  padding-top: 2mm;
  text-align: center;
  page-break-inside: avoid;
}
.p-plan-print__company img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

/* ====== WEB割 適用条件 ====== */
.p-plan-print__condition {
  margin-top: 4mm;
  padding: 0;
  background: #f1ecde;
  border: 0.3mm solid #2e5d3a;
  border-radius: 1mm;
  page-break-inside: avoid;
  overflow: hidden;
}
.p-plan-print__condition-title {
  margin: 0;
  padding: 1.2mm 2mm;
  background: #2e5d3a;
  font-size: 10pt;
  font-weight: 700;
  color: #fff;
  text-align: center;
  letter-spacing: 0.06em;
}
.p-plan-print__condition-list {
  margin: 0;
  padding: 1.5mm 4mm 1mm 8mm;
  list-style: decimal;
}
.p-plan-print__condition-list li {
  padding: 0.3mm 0;
  font-size: 8.5pt;
  line-height: 1.45;
  color: #2b2b2b;
  font-weight: 500;
}
.p-plan-print__condition-notes {
  list-style: none;
  margin: 0;
  padding: 0.5mm 4mm 2mm;
  border-top: 0.2mm dashed #c2b5a0;
}
.p-plan-print__condition-notes li {
  padding: 0.2mm 0;
  font-size: 7.5pt;
  line-height: 1.4;
  color: #4d4848;
}
.p-plan-print__condition-em {
  color: #c0392b;
  font-weight: 700;
}

/* ====== Footer 連絡先 ====== */
.p-plan-print__footer {
  margin-top: 3mm;
  padding: 1mm 3mm;
  background: transparent;
  color: #2b2b2b;
  text-align: center;
  page-break-inside: avoid;
}
.p-plan-print__contact {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 0 2.5mm;
  flex-wrap: wrap;
}
.p-plan-print__contact-hours {
  font-size: 9pt;
  font-weight: 500;
  color: #2b2b2b;
  letter-spacing: 0.05em;
}
.p-plan-print__contact-label {
  font-size: 18pt;
  font-weight: 700;
  color: #2b2b2b;
  letter-spacing: 0.05em;
  line-height: 1;
}
.p-plan-print__contact-tel {
  font-size: 20pt;
  font-weight: 700;
  color: #a83a44;
  letter-spacing: 0.02em;
  line-height: 1;
}

/* ====== 画面表示時のプレビュー風（A4 を陰影付きで中央配置） ====== */
@media screen {
  .p-plan-print-body {
    padding: 20px 0;
  }
  .p-plan-print {
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.25);
    margin: 0 auto;
  }
  /* ヘッダー・フッターやサイトナビは表示しない */
  body > *:not(.p-plan-print):not(script):not(style):not(noscript) {
    display: none !important;
  }
}

/* ====== 印刷時 ====== */
@media print {
  .p-plan-print-body {
    background: #fff;
    padding: 0;
  }
  .p-plan-print {
    /* A4 ぴったりに固定。1ページに収める */
    width: 210mm;
    height: 297mm;
    min-height: 297mm;
    max-height: 297mm;
    padding: 6mm;
    margin: 0;
    box-sizing: border-box;
    box-shadow: none;
    background: transparent;
    overflow: hidden;
    page-break-after: avoid;
    break-after: avoid;
  }
  /* ナビゲーション・サイト共通要素を非表示 */
  body > *:not(.p-plan-print):not(script):not(style):not(noscript) {
    display: none !important;
  }
}
