/* =====================================================================
   download.html — shared download landing (no sibling pages; standalone
   per CLAUDE.md folder-structure convention). Figma node 589:8288
   ("法人のお客様｜資料ダウンロード"), PC version per explicit instruction —
   mobile/tablet get a simple stacked fallback, full fidelity targeted at
   the 992px+ tier (same precedent as news/detail.html, column/detail.html).
   ===================================================================== */

body.download-page {
  background: var(--color-cream);
}

/* ---- Hero ----
   Reuses .guide-hero wholesale (breadcrumb + eyebrow/heading/lede), but
   this page has no hero media slot — .guide-hero__intro's fixed 472px
   desktop width (sized to sit beside a media sibling) is overridden back
   to auto so the lede can use the full column width, same one-off-override
   precedent as individual.css's .page-why content-width override. */

.download-hero__crumb-sep {
  width: 46px;
}

@media (min-width: 992px) {
  .download-hero__intro {
    width: auto;
    max-width: 700px;
  }
}

/* ---- Document + form layout ----
   This section uses a wider 112px side gutter than the standard
   .container's 80px, matching Figma exactly — same one-off
   .container padding-inline override precedent as product-home.css's
   .product-features. */

.download-section {
  padding-block: 24px 64px;
}

@media (min-width: 992px) {
  .download-section .container {
    padding-inline: 112px;
  }
}

.download-layout {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

@media (min-width: 992px) {
  .download-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 96px;
  }
}

/* ---- Left column: document preview ---- */

.download-intro {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 992px) {
  .download-intro {
    flex: 1 1 0;
    min-width: 0;
    gap: 32px;
  }
}

/* Figma builds the photo stack from a precise rotated two-layer
   composite; simplified here to two overlapping photos tilted in
   opposite directions, same precedent as column.css's .column-cta__photos
   (reuses the identical SAUNAGE PRO / HOME catalog-cover source photos). */

.download-intro__photos {
  position: relative;
  width: 100%;
  max-width: 487px;
  aspect-ratio: 487 / 321;
  border-radius: 9px;
  background: #CDC4B0;
  overflow: hidden;
}

.download-intro__photo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46%;
  aspect-ratio: 227 / 322;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 4px 5px 10px rgba(0, 0, 0, 0.38);
}

.download-intro__photo--back {
  transform: translate(-101%, -67%) rotate(17deg);
}

.download-intro__photo--front {
  transform: translate(2%, -31%) rotate(17deg);
}

.download-intro__title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.5;
}

@media (min-width: 992px) {
  .download-intro__title {
    font-size: 26px;
  }
}

.download-intro__points {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.download-intro__points-label {
  padding: 8px 16px;
  background: rgba(151, 134, 92, 0.2);
  border-radius: 4px;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.5;
}

@media (min-width: 992px) {
  .download-intro__points-label {
    font-size: 20px;
  }
}

.download-intro__list {
  padding-left: 22px;
  list-style: disc;
  font-size: 15px;
  line-height: 1.8;
}

/* ---- Right column: download form card ---- */

.download-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 32px 24px;
  background: rgba(255, 255, 255, 0.6);
}

@media (min-width: 992px) {
  .download-form {
    flex: none;
    width: 472px;
    padding: 40px 32px;
  }
}

.download-form__title {
  font-weight: 400;
  font-size: 22px;
  line-height: 1.5;
  text-align: left;
  margin-right: auto;
}

@media (min-width: 992px) {
  .download-form__title {
    font-size: 24px;
  }
}

/* HubSpot embed (資料請求) — .download-form centers its children, so stretch it */
.download-form .hs-form-frame {
  width: 100%;
}

.download-form__fields {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.download-form__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

/* 姓/名 pair: stacked on SP, side by side from tablet up */
.download-form__row {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

@media (min-width: 768px) {
  .download-form__row {
    flex-direction: row;
    gap: 16px;
  }

  .download-form__row .download-form__group {
    flex: 1;
    min-width: 0;
  }
}

.download-form__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  line-height: 1.5;
}

.download-form__required {
  color: var(--color-gold);
  font-size: 20px;
  line-height: 1;
}

.download-form__field,
.download-form__select-wrap {
  width: 100%;
}

.download-form__input,
.download-form__select {
  width: 100%;
  padding: 16px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--color-gray-400);
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--color-black);
}

.download-form__input:focus-visible,
.download-form__select:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

.download-form__input::placeholder {
  color: var(--color-gray-400);
}

.download-form__select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.download-form__select-wrap {
  position: relative;
}

.download-form__select-wrap::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 20px;
  width: 8px;
  height: 8px;
  border-right: 1px solid var(--color-black);
  border-bottom: 1px solid var(--color-black);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

/* ---- Document checkboxes (資料A/B/C) ---- */

.download-form__checks {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.download-form__check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  cursor: pointer;
}

.download-form__check input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.download-form__check-dot {
  position: relative;
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 1px solid var(--color-gray-400);
  background: var(--color-white);
}

.download-form__check input:checked + .download-form__check-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-gold);
}

.download-form__check input:focus-visible + .download-form__check-dot {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

/* ---- Consent checkbox ---- */

.download-form__consent {
  display: flex;
  align-items: center;
  align-self: center;
  gap: 16px;
  width: fit-content;
  cursor: pointer;
}

.download-form__consent input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.download-form__checkbox {
  position: relative;
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  border-radius: 1px;
  border: 1px solid var(--color-black);
  background: var(--color-white);
}

.download-form__consent input:checked + .download-form__checkbox::after {
  content: '';
  position: absolute;
  left: 3px;
  top: -1px;
  width: 5px;
  height: 9px;
  border-right: 2px solid var(--color-black);
  border-bottom: 2px solid var(--color-black);
  transform: rotate(40deg);
}

.download-form__consent input:focus-visible + .download-form__checkbox {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

.download-form__consent-text {
  display: flex;
  gap: 4px;
  font-size: 15px;
  line-height: 1.5;
}

.download-form__consent-text a {
  text-decoration: underline;
}

.download-form__submit {
  justify-content: center;
  align-self: center;
}
