/* ========================================
   熱中症対策義務化 LP
   ======================================== */

:root {
  --color-text: #000000;
  --color-text-soft: #595959;
  --color-text-body: #333333;
  --color-red: #ff0000;
  --color-blue: #6fa8dc;
  --color-orange: #ff9900;
  --color-border: #595959;
  --color-bg: #ffffff;
  --font-base: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans",
    "Yu Gothic", YuGothic, Meiryo, sans-serif;
  --radius-card: 36px;
  --max-width: 960px;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-base);
  color: var(--color-text);
  background: #e8eaed;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* ---------- Flyer container ---------- */
.flyer {
  max-width: var(--max-width);
  margin: 0 auto;
  background: var(--color-bg);
  padding: 28px 36px 40px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

/* ========================================
   Mandate (義務化) section
   ======================================== */
.mandate__title {
  font-size: clamp(1.55rem, 4.2vw, 2.05rem);
  font-weight: 900;
  color: var(--color-red);
  text-align: center;
  letter-spacing: 0.04em;
  line-height: 1.35;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--color-red);
  margin: 0 auto 22px;
  width: fit-content;
  max-width: 100%;
}

.mandate__body {
  display: flex;
  flex-direction: column;
  gap: 0.85em;
}

.mandate__body p {
  font-size: clamp(0.8rem, 1.65vw, 0.94rem);
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: 0.02em;
  text-align: justify;
  text-justify: inter-ideograph;
}

.u-em {
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}

.u-red {
  color: var(--color-red);
  font-weight: 700;
}

.u-formula {
  font-size: 0.88em;
  white-space: nowrap;
}

/* ========================================
   Products
   ======================================== */
.products {
  margin-top: 8px;
}

.products__title {
  font-size: clamp(1.45rem, 3.5vw, 1.85rem);
  font-weight: 900;
  color: var(--color-orange);
  text-align: center;
  letter-spacing: 0.08em;
  margin: 18px 0 20px;
}

/* Cards common */
.card {
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 20px 22px;
  background: #fff;
}

.card__name {
  font-size: clamp(1.1rem, 2.4vw, 1.45rem);
  font-weight: 900;
  color: var(--color-blue);
  letter-spacing: 0.04em;
  line-height: 1.35;
}

.card__desc {
  font-size: clamp(0.82rem, 1.6vw, 0.95rem);
  font-weight: 500;
  color: var(--color-text-soft);
  line-height: 1.65;
  margin-top: 10px;
  letter-spacing: 0.02em;
}

.card__features {
  display: flex;
  flex-direction: column;
  gap: 0.35em;
  margin-top: 12px;
}

.card__features li {
  font-size: clamp(0.78rem, 1.5vw, 0.88rem);
  font-weight: 500;
  color: var(--color-text-body);
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.card__media img {
  width: 100%;
  object-fit: contain;
}

/* ---------- Evaporative cooler (full width) ---------- */
.card--evap {
  display: grid;
  grid-template-columns: minmax(100px, 0.7fr) minmax(90px, 0.55fr) minmax(
      180px,
      1.25fr
    ) minmax(170px, 1.15fr);
  grid-template-areas:
    "title title chart diagram"
    "desc  product chart diagram";
  gap: 6px 12px;
  align-items: center;
  margin-bottom: 16px;
  padding: 16px 18px 14px;
  overflow: hidden;
}

.card--evap__title {
  grid-area: title;
  align-self: end;
}

.card--evap__desc {
  grid-area: desc;
  margin-top: 0;
  align-self: start;
}

.card--evap__product {
  grid-area: product;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  align-self: stretch;
}

.card--evap__product img {
  max-height: 190px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.card--evap__chart {
  grid-area: chart;
}

.card--evap__diagram {
  grid-area: diagram;
}

.card--evap__chart,
.card--evap__diagram {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  align-self: stretch;
}

.card--evap__chart img,
.card--evap__diagram img {
  width: 100%;
  max-height: 210px;
  object-fit: contain;
}

.card--evap__diagram img {
  max-height: 220px;
}

/* ---------- Products grid ---------- */
.products-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 16px;
  align-items: stretch;
}

.products-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Spot cooler */
.card--spot {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.card--spot .card__text {
  flex: 0 0 auto;
}

.card--spot .card__desc {
  max-width: 14em;
}

.card--spot .card__media {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.card--spot .card__media img {
  max-height: 300px;
  width: auto;
  max-width: 100%;
}

/* Mist / Freezer */
.card--mist,
.card--freezer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 10px 14px;
  align-items: center;
  flex: 1;
}

.card--mist .card__media,
.card--freezer .card__media {
  display: flex;
  justify-content: center;
  align-items: center;
}

.card--mist .card__media img {
  max-height: 170px;
  width: auto;
  max-width: 100%;
}

.card--freezer .card__media img {
  max-height: 140px;
  width: auto;
  max-width: 100%;
}

.card--freezer .card__desc {
  max-width: 9em;
}

/* ========================================
   Footer
   ======================================== */
.flyer-footer {
  margin-top: 28px;
  display: flex;
  align-items: center;
}

.flyer-footer__logo {
  width: min(280px, 55%);
  height: auto;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 820px) {
  .flyer {
    padding: 24px 22px 32px;
  }

  .u-formula {
    white-space: normal;
  }

  .card--evap {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "title title"
      "desc product"
      "chart diagram";
    gap: 10px 14px;
  }

  .card--evap__product img {
    max-height: 170px;
  }

  .card--evap__chart img,
  .card--evap__diagram img {
    max-height: 190px;
  }
}

@media (max-width: 640px) {
  .flyer {
    padding: 20px 16px 28px;
    box-shadow: none;
  }

  body {
    background: var(--color-bg);
  }

  .mandate__title {
    font-size: clamp(1.25rem, 6.5vw, 1.55rem);
    padding-bottom: 6px;
    border-bottom-width: 2.5px;
    margin-bottom: 18px;
  }

  .mandate__body p {
    text-align: left;
    line-height: 1.75;
  }

  .products__title {
    margin: 14px 0 16px;
  }

  .card {
    border-radius: 24px;
    padding: 16px 16px;
  }

  .card--evap {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "desc"
      "product"
      "chart"
      "diagram";
    gap: 12px;
  }

  .card--evap__title {
    text-align: center;
  }

  .card--evap__product img {
    max-height: 220px;
  }

  .card--evap__chart img,
  .card--evap__diagram img {
    max-height: none;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .card--spot .card__desc {
    max-width: none;
  }

  .card--spot .card__media img {
    max-height: 260px;
  }

  .card--mist,
  .card--freezer {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .card--mist .card__media img {
    max-height: 150px;
  }

  .card--freezer .card__desc {
    max-width: none;
  }

  .card--freezer .card__media img {
    max-height: 120px;
  }

  .flyer-footer {
    margin-top: 24px;
    justify-content: center;
  }

  .flyer-footer__logo {
    width: min(240px, 70%);
  }
}

@media (max-width: 400px) {
  .card--mist,
  .card--freezer {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .card--mist .card__features,
  .card--freezer .card__desc {
    text-align: left;
  }

  .card--mist .card__media img,
  .card--freezer .card__media img {
    max-height: 180px;
    margin: 0 auto;
  }
}

/* Print / A4-ish */
@media print {
  body {
    background: #fff;
  }

  .flyer {
    box-shadow: none;
    max-width: none;
    padding: 12mm;
  }
}
