/* LazyBz overlays — warm red tone */

.img-ph {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 24px;
  background: linear-gradient(180deg, #C8C8C8, #555555);
  border-radius: 40px;
  color: #5A3A32;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
}

.img-ph span {
  max-width: 28em;
}

.img-ph--form {
  aspect-ratio: 526 / 296;
  border-radius: 16px;
}

.p-about figure .img-ph,
.p-service .items figure .img-ph {
  position: relative;
  z-index: 1;
}

@media (width < 768px) {
  .img-ph {
    border-radius: 24px;
    font-size: 12px;
  }
}

/* trust bar — laurel emblems (FV overlay) */
section.hero {
  position: relative;
  overflow: visible;
}

.hero-trust {
  position: absolute;
  right: 32px;
  bottom: 32px;
  z-index: 3;
  padding: 0;
  pointer-events: none;
  --trust-text-shadow:
    0 0 4px rgba(255, 255, 255, 0.85),
    0 0 7px rgba(255, 255, 255, 0.65),
    1px 1px 0 rgba(255, 255, 255, 0.75),
    -1px -1px 0 rgba(255, 255, 255, 0.75);
}

.hero-trust.p-trust .items {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 12px;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
}

.hero-trust.p-trust .items li {
  flex: 0 0 auto;
  flex-basis: auto;
  min-width: 0;
  max-width: none;
  width: auto;
  padding: 0;
}

.hero-trust .trust-emblem {
  width: 200px;
  filter: drop-shadow(0 4px 12px rgba(80, 30, 20, 0.12));
}

.hero-trust .trust-emblem__body {
  padding: 14px 18px 0;
  max-width: 72%;
}

.hero-trust .trust-emblem__title {
  color: var(--primary-color);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.25;
  text-shadow: var(--trust-text-shadow);
}

.hero-trust .trust-emblem__label {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: #5A4038;
  text-shadow: var(--trust-text-shadow);
}

.p-trust {
  padding: 8px 16px;
}

.p-trust .items {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 12px 8px;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  border: none;
  padding: 0;
}

.p-trust .items li {
  flex: 1 1 200px;
  min-width: 180px;
  max-width: 260px;
  padding: 0;
  text-align: center;
  border: none;
  display: flex;
  justify-content: center;
}

.trust-emblem {
  position: relative;
  width: min(220px, 100%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.trust-emblem__wreath {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.trust-emblem__body {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 12px 18px 0;
  max-width: 70%;
}

.trust-emblem__num {
  margin: 0;
  color: var(--primary-color);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.02em;
}

.trust-emblem__num .n {
  font-family: "Montserrat", "Zen Kaku Gothic New", sans-serif;
  font-size: clamp(36px, 4.2vw, 48px);
  font-weight: 700;
}

.trust-emblem__num .u {
  display: inline-block;
  margin-left: 1px;
  font-size: clamp(12px, 1.5vw, 15px);
  font-weight: 900;
  vertical-align: 8px;
}

.trust-emblem__title {
  margin: 0;
  color: var(--primary-color);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0.04em;
}

.trust-emblem__label {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-color);
  letter-spacing: 0.04em;
  line-height: 1.45;
}

@media (width < 768px) {
  section.hero {
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
    background: #fff;
  }

  section.hero .p-hero {
    background: #fff;
  }

  .hero-image {
    position: relative;
    order: 2;
    padding-bottom: 0;
    margin-top: 0;
    line-height: 0;
    background: #fff;
  }

  .hero-image img {
    display: block;
    width: 100%;
    height: auto;
  }

  .hero-trust {
    right: 6px;
    bottom: 10px;
    left: auto;
  }

  .hero-trust.p-trust .items {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 6px;
  }

  .hero-trust.p-trust .items li {
    flex: 0 0 auto;
    flex-basis: auto;
  }

  .hero-trust .trust-emblem {
    width: 118px;
    filter: drop-shadow(0 2px 8px rgba(80, 30, 20, 0.18));
  }

  .hero-trust .trust-emblem__body {
    padding: 8px 10px 0;
    max-width: 72%;
  }

  .hero-trust .trust-emblem__title {
    font-size: 14px;
    font-weight: 900;
    line-height: 1.25;
    color: var(--primary-color);
    text-shadow: var(--trust-text-shadow);
  }

  .hero-trust .trust-emblem__label {
    margin-top: 4px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.35;
    color: #5A4038;
    text-shadow: var(--trust-text-shadow);
  }

  .p-trust:not(.hero-trust) .items {
    gap: 8px 0;
  }

  .p-trust:not(.hero-trust) .items li {
    flex-basis: 46%;
    min-width: 0;
    max-width: none;
  }

  .trust-emblem {
    width: min(168px, 100%);
  }

  .trust-emblem__body {
    max-width: 78%;
    padding: 8px 10px 0;
  }

  .trust-emblem__title {
    font-size: 15px;
  }

  .trust-emblem__label {
    margin-top: 6px;
    font-size: 11px;
  }

  .trust-emblem__num .n {
    font-size: 32px;
  }

  .trust-emblem__num .u {
    font-size: 12px;
    vertical-align: 6px;
  }
}

/* cases — superseded by johsys-cases.css (sec_05) */

/* plan: allow text (not only digits) in big num area */
.p-plan .body-group .num {
  font-size: clamp(28px, 4vw, 48px);
}

/* contact form inside download panel */
.lazy-form__lead {
  margin-bottom: 24px;
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.6;
}

.lazy-form .field {
  margin-bottom: 16px;
}

.lazy-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
}

.lazy-form label span {
  margin-left: 6px;
  color: var(--cta-color);
  font-size: 11px;
}

.lazy-form label span.opt {
  color: #7A5E56;
  font-weight: 500;
}

.lazy-form input,
.lazy-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #E5C9BF;
  border-radius: 8px;
  background: #fff;
  font: inherit;
}

.lazy-form input::placeholder,
.lazy-form textarea::placeholder {
  color: #B59A92;
  opacity: 1;
}

.lazy-form input:focus,
.lazy-form textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--primary-color) 35%, white);
  border-color: var(--primary-color);
}

.lazy-form .submit-btn {
  margin-top: 8px;
  max-width: none;
  width: 100%;
  justify-content: center;
  gap: 16px;
}

.lazy-form .form-note {
  margin-top: 16px;
  font-size: 12px;
  color: #7A5E56;
  line-height: 1.7;
}

.company-box {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #F0D2C8;
}

.company-box__title {
  margin-bottom: 12px;
  color: var(--primary-color);
  font-size: 16px;
  font-weight: 700;
}

.company-box dl > div {
  display: grid;
  grid-template-columns: 4.5em 1fr;
  gap: 8px;
  padding: 6px 0;
  font-size: 14px;
}

.company-box dt {
  color: #7A5E56;
  font-weight: 700;
}

/* hero shoulder text fallback sizing */
.p-hero .shoulder img {
  height: auto;
}

/* FV CTA: keep label on one line */
.p-hero .btns {
  width: 340rem;
}

.p-hero .btns .-btn {
  width: 340rem;
}

.p-hero .btns .-btn .label {
  white-space: nowrap;
}

@media (width < 768px) {
  .p-hero .btns {
    width: min(300px, calc(100vw - 32px));
  }

  .p-hero .btns .-btn {
    width: 100%;
    max-width: none;
    padding: 0 20rem;
    font-size: 17rem;
  }
}

/* ensure concerns bubbles animate when scrolled into view */
.p-concerns .concerns-group.-action ul li {
  opacity: 1;
}
