.hero-visual {
  align-self: center;
}

.hero-visual img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.hero-visual figcaption {
  margin-top: 10px;
}

.hero-title-main,
.hero-title-sub {
  display: block;
}

.hero-title-main {
  line-height: 1.45;
}

.hero-title-sub {
  margin-top: 0.38em;
  color: var(--muted);
  font-size: 0.55em;
  line-height: 1.6;
  letter-spacing: 0;
}

.hero h1 .title-phrase {
  display: inline-block;
  word-break: keep-all;
  overflow-wrap: normal;
  white-space: nowrap;
}

.hero-cta,
.closing-links,
.action-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
}

.hero-cta {
  margin-top: 26px;
}

.hero-cta .button {
  color: #fff;
  background: var(--ink);
}

.checklist-link {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.compare-figure {
  max-width: 560px;
}

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 34px;
}

.pros-cons section {
  padding: 28px 30px;
  border-top: 3px solid var(--ink);
  background: var(--paper);
}

.pros-cons h3,
.section-subheading,
.calculation h3 {
  font-family: "Noto Serif CJK JP", "Yu Mincho", serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.6;
}

.pros-cons ul {
  margin: 18px 0 0;
  padding-left: 1.3em;
}

.pros-cons li {
  margin-top: 9px;
}

.section-subheading {
  margin: 42px 0 20px;
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: #fff;
  -webkit-overflow-scrolling: touch;
}

.price-table {
  min-width: 930px;
}

.price-table thead th:first-child {
  width: 15%;
}

.price-table thead th:nth-child(2),
.price-table thead th:nth-child(3) {
  width: 15%;
}

.price-table thead th:nth-child(4) {
  width: 18%;
}

.table-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.action-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  margin-top: 38px;
  padding: 30px 34px;
  color: #fff;
  background: var(--ink);
}

.action-panel .eyebrow {
  margin-bottom: 8px;
  color: #d3c7a9;
}

.action-panel strong {
  display: block;
  max-width: 510px;
  font-family: "Noto Serif CJK JP", "Yu Mincho", serif;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.65;
}

.action-links {
  flex: 0 0 auto;
}

.action-links > a:not(.button) {
  font-size: 14px;
}

.calculation {
  max-width: 780px;
  margin-top: 34px;
  padding: 28px 30px;
  border-left: 4px solid var(--gold);
  background: var(--paper);
}

.calculation .eyebrow {
  margin-bottom: 8px;
  color: #786746;
}

.calculation p {
  margin: 12px 0 0;
}

.work-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 22px;
}

.work-gallery figure {
  min-width: 0;
  border: 1px solid var(--line);
  background: #fff;
}

.work-gallery img {
  width: 100%;
  aspect-ratio: 1.44 / 1;
  object-fit: cover;
  object-position: top;
}

.work-gallery figcaption {
  padding: 14px 16px;
  color: var(--muted);
  font-size: 14px;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  padding: 22px 52px 22px 0;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  position: absolute;
  top: 16px;
  right: 15px;
  color: #786746;
  font: 300 28px/1 Arial, sans-serif;
  content: "+";
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list p {
  margin: 0;
  padding: 0 52px 22px 0;
  color: var(--muted);
}

.closing-links > a:not(.button) {
  font-weight: 700;
}

@media (max-width: 760px) {
  .hero {
    grid-template-areas:
      "eyebrow"
      "title"
      "visual"
      "lead"
      "meta"
      "cta"
      "checklist";
    row-gap: 0;
  }

  .hero-copy {
    display: contents;
  }

  .hero-copy > .eyebrow {
    grid-area: eyebrow;
  }

  .hero-copy > h1 {
    grid-area: title;
  }

  .hero-copy > h1 .hero-title-main,
  .hero-copy > h1 .hero-title-sub {
    display: block;
  }

  .hero-copy > h1 .title-phrase {
    display: inline-block;
  }

  .hero-title-main {
    font-size: 0.9em;
  }

  .hero-title-sub {
    font-size: 0.66em;
  }

  .hero-visual {
    grid-area: visual;
    width: 100%;
    margin: 2px 0 20px !important;
  }

  .hero-copy > .lead {
    grid-area: lead;
    margin-top: 0;
  }

  .hero-copy > .meta {
    grid-area: meta;
  }

  .hero-copy > .hero-cta {
    grid-area: cta;
  }

  .hero-copy > .checklist-link {
    grid-area: checklist;
  }

  .hero-cta,
  .closing-links,
  .action-links {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-cta .button,
  .closing-links .button,
  .action-links .button {
    width: 100%;
  }

  .pros-cons,
  .work-gallery {
    grid-template-columns: 1fr;
  }

  .pros-cons section,
  .calculation {
    padding: 23px 20px;
  }

  .pros-cons h3,
  .section-subheading,
  .calculation h3 {
    font-size: 21px;
  }

  .table-scroll {
    margin-right: -20px;
  }

  .action-panel {
    align-items: stretch;
    flex-direction: column;
    padding: 26px 20px;
  }

  .action-links {
    flex-basis: auto;
  }

  .work-gallery {
    gap: 18px;
  }

  .faq-list summary {
    padding-right: 42px;
  }

  .faq-list p {
    padding-right: 18px;
  }
}

@media print {
  .hero-cta,
  .action-panel,
  .closing-links {
    display: none;
  }
}
