/* Final mobile/visual polish for 清峰園. Loaded by js/app.js. */

/* Prevent awkward wrapping in the hero status panel. */
.status-mark { white-space: nowrap; }

/* Gift image is a normal raster image and must always occupy the full card width. */
.gift-photo { overflow: hidden; }
.gift-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 44%;
}

@media (max-width: 760px) {
  /* Top notice: keep the useful action visible without horizontal overflow. */
  .announcement-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 40px;
  }
  .announcement-inner > span {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .announcement-inner > a { white-space: nowrap; }

  /* Hero: fit Japanese copy naturally on 360–430px screens. */
  .hero {
    min-height: 700px;
    background-size: 100% auto;
    background-position: center top;
  }
  .hero-content { padding-block: 82px 50px; }
  .hero h1 {
    font-size: clamp(34px, 9.3vw, 39px);
    line-height: 1.42;
    letter-spacing: .025em;
    word-break: keep-all;
    overflow-wrap: normal;
  }
  .hero-lead {
    margin-top: 18px;
    font-size: 14px;
    line-height: 1.82;
  }
  .status-board { width: 100%; }
  .status-row {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 12px;
    min-height: 74px;
    padding: 13px 15px;
  }
  .status-mark {
    white-space: nowrap;
    font-size: 15px;
    letter-spacing: .025em;
  }
  .status-row strong { font-size: 15px; }
  .status-row small { font-size: 10px; }

  /* Three compact facts in one row: value above label. */
  .quick-facts-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .quick-facts-grid > div {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 4px;
    min-width: 0;
    min-height: 88px;
    padding: 12px 5px;
    text-align: center;
  }
  .quick-facts-grid > div + div {
    border-top: 0;
    border-left: 1px solid var(--border);
  }
  .quick-facts strong {
    display: block;
    max-width: 100%;
    font-size: clamp(17px, 4.8vw, 21px);
    line-height: 1.2;
    letter-spacing: 0;
    white-space: nowrap;
  }
  .quick-facts span {
    display: block;
    font-size: 9px;
    line-height: 1.35;
    white-space: normal;
  }

  /* Keep content sections comfortably within the viewport. */
  .section h2 {
    word-break: keep-all;
    overflow-wrap: normal;
  }

  /* Gift section: image first-class, never a narrow side column. */
  .gift-layout {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }
  .gift-photo {
    width: 100%;
    max-width: none;
    margin: 0;
  }
  .gift-photo img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center 44%;
  }
  .gift-photo figcaption {
    padding: 16px 17px 18px;
  }
  .gift-photo figcaption strong { font-size: 21px; }

  /* Product cards remain readable on small phones. */
  .variety-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .variety-card { padding: 8px; }
  .variety-card summary {
    min-height: 44px;
    font-size: 14px;
    line-height: 1.4;
  }

  /* Contact details: avoid cramped label/value rows. */
  .contact-list > div {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
  }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 33px; }
  .status-row {
    grid-template-columns: 92px minmax(0, 1fr);
    padding-inline: 13px;
  }
  .status-mark { font-size: 14px; }
  .quick-facts strong { font-size: 17px; }
  .quick-facts span { font-size: 8.5px; }
}

@media (max-width: 340px) {
  .quick-facts-grid { grid-template-columns: 1fr; }
  .quick-facts-grid > div {
    grid-template-columns: auto 1fr;
    justify-items: start;
    min-height: 60px;
    padding: 10px 4px;
  }
  .quick-facts-grid > div + div {
    border-left: 0;
    border-top: 1px solid var(--border);
  }
  .quick-facts span { text-align: left; }
}
