/* =========================================
   みどりメロン農園 同梱用 商品カード
   二つ折り（閉じるとA6）をA5用紙1枚に1部／インク節約仕様
   ========================================= */

/* サイトと同じ配色トークン（赤は細線・小さな文字だけに使う） */
:root {
  --ink: #252222;
  --muted: #696363;
  --red: #bd1024;
  --line: #ded9d7;
  --sans: 'Noto Sans JP', sans-serif;
  --serif-en: 'Cormorant Garamond', Georgia, serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: #ecebea;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

/* 画面表示用の案内 */
.guide {
  max-width: 210mm;
  margin: 24px auto 0;
  padding: 0 16px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}

.guide strong {
  color: var(--ink);
  font-weight: 500;
}

/* A4用紙 1枚 */
.sheet {
  position: relative;
  width: 210mm;
  height: 297mm;
  margin: 16px auto 32px;
  background: #fff;
  box-shadow: 0 2px 16px rgba(0, 0, 0, .12);
  display: grid;
  grid-template-columns: 105mm 105mm;
  grid-template-rows: 148.5mm 148.5mm;
}

.sheet-label {
  position: absolute;
  top: -20px;
  left: 0;
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--muted);
}

/* 裁断ガイド（ごく薄いグレーの点線） */
.sheet::before,
.sheet::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.sheet::before {
  left: 50%;
  top: 0;
  bottom: 0;
  border-left: .2mm dashed #d6d3d1;
}

.sheet::after {
  top: 50%;
  left: 0;
  right: 0;
  border-top: .2mm dashed #d6d3d1;
}

/* カード1枚（A6） */
.card {
  position: relative;
  padding: 11mm 10mm 9mm;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* 英字の小見出し（サイトの .eyebrow に合わせる） */
.eyebrow {
  font-family: Arial, sans-serif;
  font-size: 6.5pt;
  letter-spacing: .2em;
  /* 英字の小見出しはサイトと同じ赤 */
  color: var(--red);
}

/* -------- 表面 -------- */
.front {
  align-items: center;
  text-align: center;
}

.front .eyebrow {
  margin-bottom: 5mm;
}

.melon {
  width: 22mm;
  height: auto;
  margin-bottom: 4mm;
}

.catch {
  font-size: 15pt;
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: .1em;
}

.sub {
  margin-top: 3mm;
  font-size: 7pt;
  letter-spacing: .2em;
  color: var(--muted);
}

/* 品種チェック欄 */
.variety {
  margin-top: 5mm;
  width: 100%;
  border-top: .2mm solid var(--ink);
  border-bottom: .2mm solid var(--ink);
  padding: 3.2mm 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.2mm 2mm;
  text-align: left;
  font-size: 7.5pt;
  letter-spacing: .04em;
}

.variety li {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.8mm;
  white-space: nowrap;
}

.box {
  flex: none;
  width: 3mm;
  height: 3mm;
  border: .2mm solid var(--ink);
}

/* 食べごろの記入欄 */
.ripe {
  margin-top: 4.5mm;
  width: 100%;
}

.ripe-head {
  font-size: 7.5pt;
  font-weight: 400;
  letter-spacing: .12em;
}

.ripe-head .label {
  display: block;
  font-family: var(--serif-en);
  font-size: 8pt;
  font-style: italic;
  letter-spacing: .06em;
  color: var(--red);
  margin-bottom: .5mm;
}

.ripe-date {
  margin-top: 2.5mm;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 1.2mm;
  font-size: 8pt;
}

.ripe-date .tilde {
  margin: 0 2mm;
}

.blank {
  display: inline-block;
  width: 9mm;
  height: 6mm;
  border-bottom: .2mm solid var(--ink);
}

.ripe-note {
  margin-top: 2.2mm;
  font-size: 5.8pt;
  line-height: 1.7;
  color: var(--muted);
  text-align: center;
}

.farm {
  margin-top: auto;
  font-size: 7pt;
  letter-spacing: .2em;
}

.farm .en {
  display: block;
  font-family: var(--serif-en);
  font-size: 9pt;
  letter-spacing: .3em;
  margin-bottom: .8mm;
}

/* -------- 裏面 -------- */
.back .eyebrow {
  margin-bottom: 1.5mm;
}

.title {
  font-size: 11pt;
  font-weight: 300;
  letter-spacing: .1em;
  line-height: 1.5;
}

/* 段階表：説明列・ツル写真・果肉写真の3列 */
.stage-head,
.stage {
  display: grid;
  grid-template-columns: 30mm 1fr 1fr;
  column-gap: 1.8mm;
}

.stage-head {
  margin-top: 3mm;
  padding-bottom: 1mm;
  border-bottom: .2mm solid var(--ink);
  font-size: 5.8pt;
  letter-spacing: .1em;
  color: var(--muted);
  text-align: center;
}

/* 左列の見出しだけ左揃え */
.head-left {
  text-align: left;
}

.stages {
  list-style: none;
}

.stage {
  padding: 1.8mm 0;
  border-bottom: .2mm solid var(--line);
  grid-template-rows: auto 1fr;
}

/* 写真は2行ぶち抜きで右側に並べる */
.stage .photo {
  grid-row: 1 / 3;
}

.stage:last-child {
  border-bottom-color: var(--ink);
}

.stage-name {
  font-size: 7pt;
  font-weight: 400;
  letter-spacing: .04em;
  line-height: 1.3;
}

/* 食べごろの段だけ赤い文字・大きめで目立たせる */
.is-best .stage-name {
  font-size: 8.5pt;
  font-weight: 500;
  color: var(--red);
}

.stage-text {
  grid-column: 1;
  grid-row: 2;
  margin-top: .8mm;
  font-size: 5.5pt;
  line-height: 1.6;
}

/* 食べごろ判断の一番の決め手（太字＋赤） */
.key {
  font-weight: 500;
  color: var(--red);
}

/* 食べごろのサイン：線なしで赤い太字だけ */
.key-sign {
  margin-top: 1.2mm;
}

.key-sign strong {
  display: block;
  font-size: 6.2pt;
  font-weight: 500;
  line-height: 1.5;
  color: var(--red);
}

.key-sign span {
  display: block;
  margin-top: .4mm;
  font-size: 4.8pt;
  color: var(--muted);
}

/* 見出し横の小さなタグ（枠なし・本文と同じ墨色） */
.badge {
  display: inline-block;
  margin-left: .5mm;
  font-size: 4.8pt;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.4;
  color: var(--ink);
  white-space: nowrap;
  vertical-align: .4mm;
}

/* タグのカッコだけ「食べごろ」と同じ赤 */
.badge .bracket {
  color: var(--red);
}

/* 写真枠（4:3） */
.photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 写真がまだない時の空き枠（点線のみでインクを使わない） */
.photo.is-empty {
  border: .2mm dashed #c9c4c2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo.is-empty::after {
  content: attr(data-label);
  font-size: 5pt;
  color: #b3adab;
}

/* 冷やす案内 */
.chill {
  margin-top: 2.5mm;
  display: flex;
  align-items: center;
  gap: 2.5mm;
  font-size: 5.8pt;
  line-height: 1.6;
}

.figure {
  flex: none;
  font-family: var(--serif-en);
  font-size: 14pt;
  line-height: 1;
  white-space: nowrap;
}

/* 数字の意味が一目で分かるよう、上に小さなラベルを添える */
.figure-label {
  display: block;
  margin-bottom: .8mm;
  font-family: var(--sans);
  font-size: 5.2pt;
  letter-spacing: .12em;
  color: var(--muted);
  text-align: center;
}

.chill-lead {
  font-weight: 400;
}

.figure small {
  font-family: var(--sans);
  font-size: 6pt;
  margin-left: .6mm;
}

/* おいしく召し上がっていただくために（左）＋ Instagram（右） */
.enjoy {
  margin-top: 2.5mm;
  display: grid;
  grid-template-columns: 1fr 37mm;
  gap: 3mm;
}

/* 左右の見出しは同じ大きさ・同じ高さにして上のラインを水平に揃える */
.care-title,
.insta-title {
  display: flex;
  align-items: center;
  height: 4mm;
  font-size: 5.8pt;
  font-weight: 400;
  letter-spacing: .04em;
  line-height: 1;
  white-space: nowrap;
  margin-bottom: 1.5mm;
}

/* 大見出し（左ブロックのタイトルだけ大きく） */
.care-title {
  font-size: 6.6pt;
  font-weight: 500;
  letter-spacing: 0;
  margin-left: -1mm;
}

/* 中見出し（●＋太字）の下に説明文を置く */
.care dl {
  font-size: 5.8pt;
  line-height: 1.6;
}

.care dt {
  font-size: 6.2pt;
  font-weight: 500;
}

.care dt::before {
  /* 塗りつぶさない白抜き丸でインク節約 */
  content: "○";
  margin-right: .8mm;
  font-size: 3.6pt;
  vertical-align: .4mm;
}

.care dd {
  margin: .2mm 0 1.3mm 2.4mm;
}

.chill-lead {
  font-weight: 500;
}

/* Instagram欄（枠なし） */
.insta {
  padding: 0;
}

/* Instagram見出しはサイトの赤＋太字で目立たせる */
.insta-title {
  gap: .8mm;
  font-weight: 500;
  color: var(--red);
}

.cam {
  flex: none;
  width: 2.8mm;
  height: 2.8mm;
}

.insta-body {
  display: flex;
  gap: 1.5mm;
  align-items: flex-start;
}

.qr {
  flex: none;
  width: 12mm;
  aspect-ratio: 1 / 1;
}

.qr img {
  object-fit: contain;
}

.insta-text {
  font-size: 4.8pt;
  line-height: 1.55;
}

.hashtag {
  font-weight: 500;
  color: var(--ink);
}

.account {
  display: block;
  margin-top: .6mm;
  font-family: Arial, sans-serif;
  letter-spacing: .04em;
}

/* 連絡先 */
.contact {
  margin-top: auto;
  padding-top: 2mm;
  border-top: .2mm solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 3mm;
  font-size: 5.8pt;
  line-height: 1.7;
  color: var(--muted);
}

.contact .name {
  font-size: 7.5pt;
  color: var(--ink);
  letter-spacing: .15em;
}

.contact .tel {
  text-align: right;
}

/* =========================================
   二つ折り用の追加スタイル
   ========================================= */

/* A5横向きの用紙（210×148mm）に見開き1部 */
.sheet.fold {
  height: 148mm;
  grid-template-rows: 148mm;
}

/* 切り取り線は不要 */
.sheet.fold::after {
  display: none;
}

/* 真ん中に折り位置の目印だけ */
.sheet.fold::before {
  top: 0;
  bottom: 0;
  border-left: none;
  background:
    linear-gradient(#bdb8b6, #bdb8b6) top / .2mm 3mm no-repeat,
    linear-gradient(#bdb8b6, #bdb8b6) bottom / .2mm 3mm no-repeat;
  width: .2mm;
}

/* 中面・左：写真を大きめ（正方形）にする */
.inside-left .photo {
  aspect-ratio: 1 / 1;
}

.inside-left .stage {
  padding: 2.4mm 0;
}

/* 中面・右：縦に積んで余白を大きくとる */
.inside-right .eyebrow {
  margin-bottom: 2mm;
}

.inside-right .care-title {
  font-size: 8pt;
  height: auto;
  margin: 0 0 3mm -1.2mm;
}

.inside-right .care dl {
  font-size: 6.6pt;
}

.inside-right .care dt {
  font-size: 7.2pt;
}

.inside-right .care dd {
  margin: .4mm 0 3mm 2.8mm;
}

.inside-right .insta {
  margin-top: auto;
  padding-top: 5mm;
  border-top: .2mm solid var(--line);
}

.inside-right .insta-title {
  height: auto;
  font-size: 7pt;
  margin-bottom: 3mm;
}

.inside-right .cam {
  width: 3.6mm;
  height: 3.6mm;
}

.inside-right .insta-body {
  gap: 4mm;
  align-items: center;
}

.inside-right .qr {
  width: 24mm;
}

.inside-right .insta-text {
  font-size: 6.4pt;
  line-height: 1.7;
}

/* お礼のひとこと（右ページ中央） */
.thanks {
  margin: auto 0;
  text-align: center;
}

.thanks-en {
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 13pt;
  color: var(--red);
  margin-bottom: 2mm;
}

.thanks-text {
  font-size: 6.4pt;
  line-height: 2;
  letter-spacing: .04em;
}

.inside-right .insta {
  margin-top: 0;
}

/* 裏表紙：注意書きは連絡先の上に寄せる */
.back-cover .notice {
  margin-top: auto;
  margin-bottom: 3mm;
}

/* 裏表紙：農園の紹介 */
.back-cover .title {
  margin-top: 1mm;
}

.story {
  margin-top: 4mm;
  font-size: 6.6pt;
  line-height: 1.95;
}

.points {
  margin-top: 5mm;
  list-style: none;
  border-top: .2mm solid var(--ink);
}

.points li {
  display: flex;
  align-items: baseline;
  gap: 3mm;
  padding: 2.4mm 0;
  border-bottom: .2mm solid var(--line);
  font-size: 6.6pt;
}

.points li:last-child {
  border-bottom-color: var(--ink);
}

.points .num {
  font-family: var(--serif-en);
  font-size: 10pt;
  color: var(--red);
}

.notice {
  margin-top: 5mm;
  font-size: 5.6pt;
  line-height: 1.75;
  color: var(--muted);
}

/* -------- 印刷設定 -------- */
@page {
  size: A5 landscape;
  margin: 0;
}

@media print {
  body {
    background: #fff;
  }

  .guide,
  .sheet-label {
    display: none;
  }

  .sheet {
    margin: 0;
    box-shadow: none;
    page-break-after: always;
    break-after: page;
  }

  .sheet:last-of-type {
    page-break-after: auto;
    break-after: auto;
  }
}

/* スマホ幅での確認用（用紙を縮小表示） */
@media screen and (max-width: 820px) {
  .sheet {
    zoom: .45;
  }
}
