/* Migrated top sandbox CSS block 1 */
.home {
  --fv-navy: #003b61;
  --fv-navy-deep: #00304f;
  --fv-blue: #005f99;
  --fv-ink: #090909;
  --fv-line: rgba(0, 59, 97, 0.72);
  --fv-line-soft: rgba(0, 59, 97, 0.22);
  --fv-muted-line: #d8dee5;
  --fv-paper: #ffffff;
  --fv-soft: #f7f9fa;
  --fv-text: #092f4d;
  background: #fff;
}

.home body,
.home .front-page {
  background: #fff;
}

.home .site-header {
  border-bottom: 0;
  background: rgba(255, 255, 255, 0.985);
  box-shadow: 0 1px 0 rgba(0, 59, 97, 0.08);
}

.home .site-header .container {
  width: min(calc(100% - 76px), 1780px);
  max-width: none;
}

.home .header-inner {
  min-height: 96px;
  gap: 28px;
}

.home .brand {
  min-width: 320px;
  gap: 14px;
}

.home .brand-mark {
  width: 58px;
  height: 58px;
  flex-basis: 58px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.home .brand-mark img {
  border-radius: 0;
  object-fit: contain;
}

.home .brand-text strong,
.home .footer-brand strong {
  color: #141414;
  font-family: var(--font-sans);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.22;
}

.home .brand-text small {
  color: var(--fv-navy);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.home .nav {
  gap: clamp(13px, 1.15vw, 24px);
  color: var(--fv-navy);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
}

.home .nav a {
  border-bottom: 0;
  padding-bottom: 0;
}

.home .nav a:hover,
.home .nav a:focus-visible,
.home .nav a[aria-current="page"],
.home .nav a.is-current {
  color: var(--fv-navy-deep);
}

@media (min-width: 981px) {
  .home .header-actions .document-cta {
    display: none;
  }
}

.home .header-actions .cta-link-primary,
.home .header-consult-cta {
  min-width: 260px;
  min-height: 68px;
  padding: 11px 28px;
  border: 0;
  border-radius: 999px;
  background: var(--fv-blue);
  color: #fff;
  box-shadow: none;
  flex-direction: column;
  gap: 2px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
}

.home .header-actions .cta-link-primary small,
.home .header-consult-cta small {
  display: block;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.home .front-page .hero {
  position: relative;
  overflow: hidden;
  padding: 0;
  border-bottom: 0;
  background:
    linear-gradient(90deg, rgba(255, 253, 242, 0.58) 0%, rgba(247, 250, 250, 0.44) 42%, rgba(220, 224, 227, 0) 70%),
    linear-gradient(180deg, #f7f8f8 0%, #eef1f2 66%, #d5d8da 100%);
}

.home .front-page .hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--fv-line);
}

.home .front-page .hero > .container.hero-stage {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 92px), 1780px);
  max-width: none;
  min-height: 642px;
  display: grid;
  grid-template-columns: minmax(560px, 1.04fr) minmax(420px, 0.78fr);
  gap: clamp(34px, 4.2vw, 86px);
  align-items: stretch;
}

.home .front-page .hero-message {
  align-self: center;
  padding: 56px 0 66px 44px;
}

.home .front-page .hero-subcopy {
  display: none;
}

.home .front-page .hero-message h1 {
  max-width: 940px;
  margin: 0 0 32px;
  color: var(--fv-ink);
  font-family: var(--font-serif);
  font-size: clamp(54px, 5vw, 88px);
  font-weight: 500;
  line-height: 1.48;
  letter-spacing: 0;
}

.home .front-page .hero-message h1 span {
  display: block;
  white-space: nowrap;
}

.home .front-page .hero-line {
  width: min(860px, 100%);
  height: 1px;
  margin: 0 0 38px;
  background: var(--fv-line);
}

.home .front-page .hero-message .lead {
  max-width: 850px;
  margin-bottom: 0;
  color: var(--fv-text);
  font-size: clamp(17px, 1.18vw, 22px);
  font-weight: 700;
  line-height: 1.82;
}

.home .front-page .hero-actions {
  margin-top: 32px;
}

.home .front-page .hero-actions .document-cta {
  display: none;
}

.home .front-page .hero-actions .cta-link-primary {
  min-width: 326px;
  min-height: 66px;
  padding: 13px 28px;
  border: 0;
  border-radius: 999px;
  background: var(--fv-navy-deep);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}

.home .front-page .hero-person {
  align-self: stretch;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.home .front-page .hero-person img {
  width: 100%;
  height: 100%;
  max-height: none;
  margin-top: auto;
  object-fit: cover;
  object-position: 50% 46%;
  filter: none;
}

.home .front-page .hero-person .hero-person-caption {
  position: relative;
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: -18px auto 0;
  padding: 10px 16px;
  border: 1px solid rgba(0, 59, 97, 0.18);
  background: rgba(255, 255, 255, 0.9);
  color: var(--fv-navy-deep);
  text-align: center;
}

.home .front-page .hero-person .hero-person-caption span {
  display: block;
  margin-bottom: 2px;
  color: rgba(9, 47, 77, 0.62);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

.home .front-page .hero-person .hero-person-caption strong {
  display: block;
  color: var(--fv-navy-deep);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.home .front-page .hero-metrics {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 76px), 1280px);
  max-width: none;
  margin: 31px auto 0;
  border: 1px solid var(--fv-line-soft);
  background: #fff;
}

.home .front-page .metric {
  min-height: 94px;
  padding: 18px 20px;
  border-right-color: var(--fv-line-soft);
}

.home .front-page .metric span {
  color: rgba(9, 47, 77, 0.64);
  font-size: 12px;
  font-weight: 700;
}

.home .front-page .metric strong {
  color: var(--fv-navy);
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 800;
}

.home .front-page .hero .price-note {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 13px auto 0;
  color: rgba(9, 47, 77, 0.76);
}

.home .front-page .section,
.home .front-page .section.alt,
.home .footer-contact {
  background: #fff;
}

.home .front-page .section {
  position: relative;
  padding: clamp(92px, 8vw, 136px) 0;
  border-top: 1px solid var(--fv-line-soft);
}

.home .front-page .front-cta-section {
  padding-top: clamp(68px, 6vw, 96px);
  padding-bottom: clamp(78px, 7vw, 112px);
  border-top: 0;
}

.home .front-page .section > .container,
.home .front-page .front-cta-section > .container,
.home .footer-contact .container,
.home .site-footer .container {
  width: min(calc(100% - 76px), 1280px);
  max-width: none;
}

.home .front-page .section-head {
  display: grid;
  grid-template-columns: minmax(360px, 400px) minmax(0, 1fr);
  gap: clamp(42px, 5vw, 78px);
  align-items: start;
  max-width: none;
  margin-bottom: clamp(38px, 4.4vw, 64px);
}

.home .front-page .section-head .kicker,
.home .front-page .contact-copy .kicker,
.home .footer-contact .kicker {
  position: relative;
  margin: 0;
  color: var(--fv-navy-deep);
  font-family: Arial, Helvetica, var(--font-sans);
  font-size: clamp(40px, 4.3vw, 64px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: 0;
  text-transform: none;
}

.home .front-page .section-head .kicker::after,
.home .front-page .contact-copy .kicker::after,
.home .footer-contact .kicker::after {
  content: "";
  display: block;
  width: 44px;
  height: 5px;
  margin-top: 20px;
  background: var(--fv-muted-line);
}

.home .front-page .section-head h2,
.home .front-page .contact-copy h2,
.home .footer-contact h2 {
  margin: 7px 0 0;
  color: var(--fv-navy-deep);
  font-family: var(--font-sans);
  font-size: clamp(17px, 1.35vw, 22px);
  font-weight: 700;
  line-height: 1.72;
}

.home .front-page .section-head > p:not(.kicker) {
  grid-column: 2;
  max-width: 900px;
  margin: 10px 0 0;
  color: var(--fv-text);
  font-size: 15px;
  line-height: 2.05;
}

.home .front-page .section:nth-of-type(4)::before,
.home .front-page .section:nth-of-type(6)::before,
.home .front-page .section:nth-of-type(9)::before {
  content: "";
  display: block;
  width: min(calc(100% - 76px), 1280px);
  height: clamp(210px, 24vw, 330px);
  margin: 0 auto clamp(50px, 5vw, 76px);
  border-top: 1px solid var(--fv-line-soft);
  border-bottom: 1px solid var(--fv-line-soft);
  background-position: center;
  background-size: cover;
  filter: saturate(0.88) contrast(0.96) brightness(1.05);
}

.home .front-page .section:nth-of-type(4)::before {
  background-image: url('/wp-content/themes/gyoseishoshi-theme/assets/images/home-scope-overview.jpg');
}

.home .front-page .section:nth-of-type(6)::before {
  background-image: url('/wp-content/themes/gyoseishoshi-theme/assets/images/home-progress-visibility.jpg');
  background-position: center 58%;
}

.home .front-page .section:nth-of-type(9)::before {
  background-image: url('/wp-content/themes/gyoseishoshi-theme/assets/images/home-for-business-partner-handshake.jpg');
  background-position: center 54%;
}

.home .front-page .top-contact-form-block {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 30px;
  margin-top: 0;
}

.home #top-contact-form .top-contact-main,
.home .top-contact-side-card,
.home .contact-form-area .wpcf7 {
  border-color: var(--fv-line-soft);
  background: #fff;
  box-shadow: none;
}

.home #top-contact-form .top-contact-main {
  padding: 30px;
}

.home #top-contact-form .top-contact-copy {
  border-bottom-color: var(--fv-line-soft);
}

.home .wpcf7-form label,
.home .top-contact-side-card h3 {
  color: var(--fv-navy-deep);
  font-family: var(--font-sans);
}

.home .wpcf7-text,
.home .wpcf7-email,
.home .wpcf7-tel,
.home .wpcf7-select,
.home .wpcf7-textarea {
  border-color: var(--fv-line-soft);
  background: #fbfcfd;
}

.home .wpcf7-submit,
.home .form-submit-button {
  border-radius: 999px;
  background: var(--fv-navy-deep);
  border-color: var(--fv-navy-deep);
}

.home .three-grid,
.home .service-grid,
.home .service-column-list,
.home .top-price-cards,
.home .summary-list,
.home .faq-qa-list,
.home .flow-list,
.home .front-column-list {
  border: 0;
  background: transparent;
}

.home .three-grid {
  gap: 48px;
}

.home .reason-item,
.home .panel,
.home .flow-item,
.home .service-summary-item,
.home .front-column-item,
.home .top-price-card,
.home .top-price-included,
.home .faq-qa-item {
  border: 0;
  border-top: 1px solid var(--fv-line-soft);
  background: transparent;
  box-shadow: none;
}

.home .reason-item {
  padding: 0 0 6px;
}

.home .reason-item::before {
  content: "";
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  margin-bottom: 28px;
  background-position: center;
  background-size: cover;
  filter: saturate(0.86) contrast(0.96) brightness(1.04);
}

.home .three-grid .reason-item:nth-child(1)::before {
  background-image: url('/wp-content/themes/gyoseishoshi-theme/assets/images/home-reason-01.jpg');
}

.home .three-grid .reason-item:nth-child(2)::before {
  background-image: url('/wp-content/themes/gyoseishoshi-theme/assets/images/home-reason-02.jpg');
}

.home .three-grid .reason-item:nth-child(3)::before {
  background-image: url('/wp-content/themes/gyoseishoshi-theme/assets/images/home-reason-03.jpg');
}

.home .reason-item span,
.home .summary-item span,
.home .flow-item span {
  color: var(--fv-navy-deep);
  font-family: Arial, Helvetica, var(--font-sans);
  font-weight: 400;
  letter-spacing: 0;
}

.home .reason-item span {
  margin: 0 0 18px;
  font-size: 18px;
  text-align: center;
}

.home .reason-item span::before {
  content: "Feature.";
}

.home .reason-item h3 {
  color: var(--fv-navy-deep);
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.75;
  text-align: center;
}

.home .reason-item p {
  color: var(--fv-text);
  font-size: 14px;
  line-height: 2;
  text-align: center;
}

.home .summary-list {
  border-top: 1px solid var(--fv-line-soft);
}

.home .summary-item {
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 34px;
  padding: 28px 0;
  border-bottom: 1px solid var(--fv-line-soft);
  background: transparent;
}

.home .summary-item span {
  justify-content: flex-start;
  font-size: 24px;
}

.home .summary-item strong,
.home .service-summary-body strong,
.home .flow-item h3,
.home .front-column-item h3,
.home .top-price-card strong {
  color: var(--fv-navy-deep);
  font-family: var(--font-sans);
}

.home .summary-item p,
.home .service-summary-body small,
.home .flow-item p,
.home .faq-answer p,
.home .top-price-card p,
.home .price-note {
  color: var(--fv-text);
  font-size: 14px;
  line-height: 2;
}

.home .top-price-layout {
  gap: 34px;
}

.home .top-price-card,
.home .top-price-included {
  padding: 24px 0 0;
}

.home .top-price-card span,
.home .top-price-included span {
  color: rgba(9, 47, 77, 0.62);
}

.home .price-table-wrap {
  border-color: var(--fv-line-soft);
}

.home .price-table th,
.home .price-table td {
  border-bottom-color: var(--fv-line-soft);
}

.home .price-table th {
  background: #f7f9fa;
  color: var(--fv-navy-deep);
}

.home .service-column-list {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
}

.home .service-column-list .service-summary-item {
  min-height: 210px;
  padding: 24px 0 0;
  border: 0;
  border-top: 1px solid var(--fv-line-soft);
}

.home .service-summary-link,
.home .page-link-button,
.home .cta-link-secondary {
  border-color: var(--fv-blue);
  border-radius: 999px;
  color: var(--fv-navy-deep);
}

.home .flow-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--fv-line-soft);
}

.home .flow-item {
  display: grid;
  grid-template-columns: 92px minmax(220px, 0.36fr) minmax(0, 1fr);
  gap: 28px;
  align-items: baseline;
  min-height: 0;
  padding: 24px 0;
  border-top: 0;
  border-bottom: 1px solid var(--fv-line-soft);
}

.home .flow-item span {
  font-size: 20px;
}

.home .flow-item h3,
.home .flow-item p {
  margin: 0;
}

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

.home .faq-qa-item {
  border-top: 0;
  border-bottom: 1px solid var(--fv-line-soft);
}

.home .faq-question,
.home .faq-answer {
  padding-right: 0;
  padding-left: 0;
}

.home .faq-question h3 {
  color: var(--fv-navy-deep);
  font-size: 16px;
}

.home .front-column-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--fv-line-soft);
}

.home .front-column-item {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) auto auto;
  gap: 22px;
  align-items: center;
  padding: 18px 0;
  border-top: 0;
  border-bottom: 1px solid var(--fv-line-soft);
}

.home .front-column-thumb img,
.home .front-column-thumb {
  width: 108px;
  height: 64px;
  object-fit: cover;
}

.home .footer-contact {
  padding: 96px 0;
  border-top: 1px solid var(--fv-line-soft);
}

.home .footer-contact-inner {
  display: grid;
  grid-template-columns: minmax(360px, 400px) minmax(0, 1fr);
  gap: clamp(42px, 5vw, 78px);
  align-items: start;
}

.home .footer-contact .kicker {
  grid-column: 1;
}

.home .footer-contact h2,
.home .footer-contact p:not(.kicker) {
  grid-column: 2;
}

.home .footer-contact p:not(.kicker) {
  color: var(--fv-text);
  line-height: 2;
}

.home .site-footer {
  padding: 76px 0 44px;
  background: var(--fv-navy-deep);
  color: rgba(255, 255, 255, 0.82);
}

.home .site-footer .brand-text strong,
.home .site-footer .footer-brand strong {
  color: #fff;
}

.home .site-footer .brand-text small,
.home .site-footer a,
.home .site-footer p {
  color: rgba(255, 255, 255, 0.82);
}

.home .site-footer .brand-mark {
  filter: brightness(0) invert(1);
}

.home .footer-main {
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

@media (max-width: 1280px) {
  .home .site-header .container {
    width: min(calc(100% - 48px), 1180px);
  }

  .home .brand {
    min-width: 250px;
  }

  .home .nav {
    gap: 13px;
    font-size: 13px;
  }

  .home .header-actions .cta-link-primary,
  .home .header-consult-cta {
    min-width: 210px;
    min-height: 62px;
    font-size: 16px;
  }

  .home .front-page .hero > .container.hero-stage {
    width: min(calc(100% - 56px), 1180px);
    grid-template-columns: minmax(0, 1.04fr) minmax(350px, 0.72fr);
  }

  .home .front-page .hero-message {
    padding-left: 0;
  }

  .home .service-column-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .home .site-header .container,
  .home .front-page .section > .container,
  .home .front-page .front-cta-section > .container,
  .home .footer-contact .container,
  .home .site-footer .container,
  .home .front-page .section:nth-of-type(4)::before,
  .home .front-page .section:nth-of-type(6)::before,
  .home .front-page .section:nth-of-type(9)::before {
    width: min(calc(100% - 32px), 720px);
  }

  .home .header-inner {
    min-height: 76px;
  }

  .home .brand {
    min-width: 0;
  }

  .home .brand-mark {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  .home .brand-text strong {
    font-size: 17px;
  }

  .home .header-actions {
    display: none;
  }

  .home .front-page .hero > .container.hero-stage {
    width: min(calc(100% - 32px), 720px);
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 42px;
  }

  .home .front-page .hero-message {
    padding: 0;
  }

  .home .front-page .hero-message h1 {
    font-size: clamp(42px, 10vw, 62px);
    line-height: 1.42;
  }

  .home .front-page .hero-message .lead {
    font-size: 16px;
  }

  .home .front-page .hero-actions .cta-link-primary {
    width: 100%;
    min-width: 0;
  }

  .home .front-page .hero-person {
    min-height: 340px;
  }

  .home .front-page .hero-person img {
    height: 360px;
    max-width: 86%;
  }

  .home .front-page .hero-metrics {
    width: min(calc(100% - 32px), 720px);
    margin-top: 28px;
    grid-template-columns: 1fr;
  }

  .home .front-page .section-head,
  .home .footer-contact-inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .home .front-page .section-head > p:not(.kicker),
  .home .footer-contact .kicker,
  .home .footer-contact h2,
  .home .footer-contact p:not(.kicker) {
    grid-column: auto;
  }

  .home .front-page .top-contact-form-block,
  .home .top-price-layout,
  .home .top-price-cards,
  .home .service-column-list,
  .home .three-grid {
    grid-template-columns: 1fr;
  }

  .home .flow-item {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .home .flow-item p {
    grid-column: 2;
  }

  .home .front-column-item {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .home .front-column-category,
  .home .front-column-date {
    grid-column: 2;
  }
}

@media (max-width: 640px) {
  .home .front-page .hero {
    background:
      linear-gradient(90deg, rgba(255, 253, 242, 0.5) 0%, rgba(247, 250, 250, 0.28) 52%, rgba(221, 225, 228, 0) 100%),
      linear-gradient(180deg, #f8f9f9 0%, #eef0f1 68%, #d8dbdd 100%);
  }

  .home .front-page .hero-message {
    padding-right: 16px;
  }

  .home .front-page .hero-message h1 {
    font-size: clamp(32px, 9.4vw, 40px);
    line-height: 1.5;
  }

  .home .front-page .hero-message h1 span {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .home .front-page .hero-actions {
    width: 100%;
    min-width: 0;
  }

  .home .front-page .hero-actions .cta-link-primary {
    width: min(100%, 340px);
    min-width: 0;
  }

  .home .front-page .hero-line {
    margin-bottom: 28px;
  }

  .home .front-page .hero-person {
    min-height: 286px;
  }

  .home .front-page .hero-person img {
    height: 310px;
    max-width: 96%;
  }

  .home .front-page .section {
    padding: 74px 0;
  }

  .home .front-page .section-head .kicker,
  .home .front-page .contact-copy .kicker,
  .home .footer-contact .kicker {
    font-size: clamp(34px, 11vw, 44px);
  }

  .home .front-page .section-head h2,
  .home .front-page .contact-copy h2,
  .home .footer-contact h2 {
    font-size: 17px;
  }

  .home #top-contact-form .top-contact-main {
    padding: 20px;
  }

  .home .summary-item {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 18px;
  }

  .home .reason-item::before {
    margin-bottom: 22px;
  }
}

/* Novamira readability refinements - 2026-06-19 */
.home .front-page .hero > .container:has(> .price-note) {
  display: none;
}

.home .front-page .section > .container,
.home .front-page .front-cta-section > .container,
.home .footer-contact .container,
.home .site-footer .container,
.home .front-page .hero-metrics,
.home .front-page .hero .price-note,
.home .front-page .section:nth-of-type(4)::before,
.home .front-page .section:nth-of-type(6)::before,
.home .front-page .section:nth-of-type(9)::before {
  width: min(calc(100% - 88px), 1120px);
}

.home .front-page .hero > .container.hero-stage {
  width: min(calc(100% - 88px), 1320px);
}

.home .front-page .section {
  padding: clamp(82px, 7vw, 118px) 0;
}

.home .front-page .section-head,
.home .footer-contact-inner {
  display: block;
  max-width: 780px;
  margin-right: auto;
  margin-bottom: clamp(34px, 4vw, 56px);
}

.home .front-page .section-head .kicker,
.home .front-page .contact-copy .kicker,
.home .footer-contact .kicker {
  margin-bottom: 12px;
  font-size: clamp(38px, 4vw, 58px);
}

.home .front-page .section-head h2,
.home .front-page .contact-copy h2,
.home .footer-contact h2 {
  margin-top: 0;
  max-width: 760px;
}

.home .front-page .section-head > p:not(.kicker),
.home .footer-contact p:not(.kicker) {
  grid-column: auto;
  max-width: 760px;
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.9;
}

.home .front-page .contact-copy .kicker {
  display: none;
}

.home .front-page .top-contact-form-block {
  grid-template-columns: minmax(0, 900px);
  justify-content: start;
}

.home .top-contact-side {
  display: none;
}

.home #top-contact-form .top-contact-main {
  padding: 34px;
}

.home #top-contact-form .top-contact-copy h2 {
  font-size: clamp(24px, 2vw, 32px);
  line-height: 1.45;
}

.home .wpcf7-form-control::placeholder,
.home .wpcf7-text::placeholder,
.home .wpcf7-email::placeholder,
.home .wpcf7-tel::placeholder,
.home .wpcf7-textarea::placeholder {
  color: #c8d0d7;
  opacity: 1;
}

.home .top-price-layout {
  display: block;
  border: 1px solid var(--fv-line-soft);
  background: var(--fv-line-soft);
}

.home .top-price-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 0;
  background: var(--fv-line-soft);
}

.home .top-price-card,
.home .top-price-included {
  border: 0;
  background: #fff;
  padding: 24px 26px;
}

.home .top-price-card {
  min-height: 178px;
}

.home .top-price-included {
  margin-top: 1px;
}

.home .top-price-included ul {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--fv-line-soft);
}

.home .top-price-included li {
  padding: 12px 14px;
  border-left: 0;
  background: #f8fafb;
  text-align: center;
}

.home .service-column-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  border: 0;
  background: transparent;
}

.home .service-column-list .service-summary-item {
  min-height: 178px;
  padding: 24px 26px;
  border: 1px solid var(--fv-line-soft);
  background: #fff;
}

.home .front-column-list {
  max-width: 920px;
}

.home .site-footer .brand-mark {
  filter: none;
  padding: 3px;
  border-radius: 50%;
  background: #fff;
}

.home .site-footer .brand-mark img {
  filter: none;
}

.home .site-footer .cta-link-secondary,
.home .site-footer .document-cta {
  border-color: rgba(255, 255, 255, 0.42);
  background: transparent;
  color: #fff;
}

.home .site-footer .cta-link-primary {
  border-color: #fff;
  background: #fff;
  color: var(--fv-navy-deep);
}

/* Novamira first-view form layout - 2026-06-19 */
.home .front-page .hero {
  min-height: calc(100vh - 96px);
  display: grid;
  align-content: start;
}

.home .front-page .hero > .container.hero-stage {
  min-height: 560px;
  grid-template-columns: minmax(330px, 430px) minmax(360px, 1fr) minmax(320px, 360px);
  grid-template-areas: "photo copy form";
  gap: clamp(26px, 3vw, 48px);
  align-items: center;
  padding-top: 18px;
}

.home .front-page .hero-person {
  grid-area: photo;
  align-self: center;
  min-height: 520px;
  display: grid;
  align-content: end;
  overflow: visible;
}

.home .front-page .hero-person::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 58px;
  left: 0;
  height: 74%;
  background: linear-gradient(180deg, rgba(226, 234, 239, 0.48), rgba(255, 255, 255, 0));
  border-radius: 999px 999px 0 0;
  z-index: -1;
}

.home .front-page .hero-person img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: 50% 45%;
}

.home .front-page .hero-message {
  grid-area: copy;
  align-self: center;
  padding: 0;
}

.home .front-page .hero-message h1 {
  font-size: clamp(42px, 4.2vw, 68px);
  line-height: 1.42;
  margin-bottom: 24px;
}

.home .front-page .hero-line {
  margin-bottom: 26px;
}

.home .front-page .hero-message .lead {
  font-size: clamp(15px, 1.05vw, 18px);
  line-height: 1.78;
}

.home .front-page .hero-message .hero-metrics {
  width: min(100%, 650px);
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid rgba(0, 59, 97, 0.18);
  background:
    linear-gradient(135deg, rgba(226, 236, 243, 0.88) 0%, rgba(244, 248, 250, 0.82) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.home .front-page .hero-message .metric {
  position: relative;
  min-height: 70px;
  padding: 12px 14px 12px 18px;
  border-right: 1px solid rgba(0, 59, 97, 0.14);
  border-bottom: 1px solid rgba(0, 59, 97, 0.14);
  background: rgba(255, 255, 255, 0.22);
  text-align: left;
  align-items: flex-start;
}

.home .front-page .hero-message .metric::before {
  display: none;
}

.home .front-page .hero-message .metric:nth-child(2n) {
  border-right: 0;
}

.home .front-page .hero-message .metric:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.home .front-page .hero-message .metric span {
  margin-bottom: 3px;
  color: rgba(9, 47, 77, 0.62);
  font-size: 11px;
  line-height: 1.45;
}

.home .front-page .hero-message .metric strong {
  color: #073656;
  font-size: 14px;
  line-height: 1.45;
  white-space: nowrap;
}

.home .front-page .hero-actions {
  display: none;
}

.home .hero-form-panel {
  grid-area: form;
  align-self: center;
}

.home .hero-form-panel .top-contact-main {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--fv-line-soft);
  background: rgba(255, 255, 255, 0.94);
}

.home .hero-form-panel .top-contact-copy {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--fv-line-soft);
}

.home .hero-form-panel .top-contact-copy .kicker {
  display: none;
}

.home .hero-form-panel .top-contact-copy h2 {
  margin: 0;
  color: var(--fv-navy-deep);
  font-family: var(--font-sans);
  font-size: 20px;
  line-height: 1.4;
}

.home .hero-form-panel .contact-form-area .wpcf7 {
  padding: 0;
  border: 0;
  background: transparent;
}

.home .hero-form-panel .wpcf7-form {
  grid-template-columns: 1fr !important;
  gap: 8px;
}

.home .hero-form-panel .wpcf7-form label {
  font-size: 13px;
  line-height: 1.45;
}

.home .hero-form-panel .wpcf7-form-control-wrap {
  margin-top: 4px;
}

.home .hero-form-panel .wpcf7-text,
.home .hero-form-panel .wpcf7-email,
.home .hero-form-panel .wpcf7-tel,
.home .hero-form-panel .wpcf7-select,
.home .hero-form-panel .wpcf7-textarea {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 13px;
}

.home .hero-form-panel .wpcf7-textarea {
  height: 58px;
  min-height: 58px;
}

.home .hero-form-panel .wpcf7-acceptance label {
  font-size: 13px;
}

.home .hero-form-panel .wpcf7-submit {
  min-height: 40px;
  padding: 8px 18px;
}

.home .front-page .hero-metrics {
  margin-top: 0;
  margin-bottom: 12px;
}

.home .front-page .metric {
  min-height: 54px;
  padding: 7px 14px;
}

.home .front-page .metric strong {
  font-size: 16px;
}

.home .front-page .front-cta-section {
  display: none;
}

@media (max-width: 1180px) {
  .home .front-page .hero > .container.hero-stage {
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr) minmax(300px, 340px);
    gap: 26px;
  }

  .home .front-page .hero-person,
  .home .front-page .hero-person img {
    min-height: 0;
    height: 460px;
  }

  .home .front-page .hero-message h1 {
    font-size: clamp(38px, 4vw, 54px);
  }
}

@media (max-width: 980px) {
  .home .front-page .hero {
    min-height: 0;
  }

  .home .front-page .hero > .container.hero-stage {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "photo"
      "form";
    min-height: 0;
    padding-top: 36px;
  }

  .home .front-page .hero-person,
  .home .front-page .hero-person img {
    min-height: 0;
    height: 300px;
  }

  .home .hero-form-panel {
    width: min(100%, 390px);
  }
}

@media (max-width: 980px) {
  .home .front-page .section > .container,
  .home .front-page .front-cta-section > .container,
  .home .footer-contact .container,
  .home .site-footer .container,
  .home .front-page .hero-metrics,
  .home .front-page .hero > .container.hero-stage,
  .home .front-page .section:nth-of-type(4)::before,
  .home .front-page .section:nth-of-type(6)::before,
  .home .front-page .section:nth-of-type(9)::before {
    width: min(calc(100% - 32px), 720px);
  }

  .home .top-price-cards,
  .home .top-price-included ul,
  .home .service-column-list {
    grid-template-columns: 1fr;
  }

  .home #top-contact-form .top-contact-main {
    padding: 24px;
  }
}

@media (max-width: 980px) {
  .home .front-page .hero-person {
    margin-top: 22px;
  }
}

/* 2026-06-19: align first-view columns to the annotated reference. */
@media (min-width: 981px) {
  .home .front-page .hero > .container.hero-stage {
    width: min(calc(100% - 84px), 1356px);
    min-height: 600px;
    grid-template-columns: minmax(398px, 420px) minmax(0, 465px) minmax(344px, 360px);
    gap: clamp(44px, 3.8vw, 56px);
    align-items: stretch;
    padding-top: 18px;
  }

  .home .front-page .hero-person,
  .home .hero-form-panel {
    align-self: stretch;
    min-height: 600px;
    height: 600px;
  }

  .home .front-page .hero-person {
    position: relative;
    display: block;
    overflow: hidden;
  }

  .home .front-page .hero-person::before {
    display: none;
  }

  .home .front-page .hero-person img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: 50% 45%;
  }

  .home .front-page .hero-person .hero-person-caption {
    position: absolute;
    top: auto;
    right: auto;
    left: 50%;
    bottom: 18px;
    z-index: 2;
    width: max-content;
    height: auto;
    max-width: calc(100% - 72px);
    margin: 0;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.92);
  }

  .home .front-page .hero-message {
    align-self: stretch;
    display: flex;
    min-height: 600px;
    flex-direction: column;
    justify-content: center;
    padding: 0;
  }

  .home .front-page .hero-message h1 {
    max-width: 100%;
    font-size: clamp(46px, 4vw, 58px);
    line-height: 1.48;
  }

  .home .front-page .hero-message h1 span {
    display: block;
    white-space: nowrap;
  }

  .home .front-page .hero-message .lead {
    max-width: 100%;
  }

  .home .hero-form-panel {
    box-sizing: border-box;
    overflow: hidden;
  }
}

@media (min-width: 981px) and (max-width: 1180px) {
  .home .front-page .hero > .container.hero-stage {
    width: min(calc(100% - 48px), 1120px);
    grid-template-columns: minmax(300px, 340px) minmax(0, 1fr) minmax(300px, 330px);
    gap: 30px;
  }

  .home .front-page .hero-message h1 {
    font-size: clamp(38px, 3.8vw, 46px);
  }
}

/* 2026-06-19: replace home section images with supplied assets. */
.home .front-page .section:nth-of-type(4)::before {
  background-image: url('/wp-content/themes/gyoseishoshi-theme/assets/images/home-scope-overview.jpg');
  background-position: center 48%;
}

.home .front-page .section:nth-of-type(6)::before {
  background-image: url('/wp-content/themes/gyoseishoshi-theme/assets/images/home-progress-visibility.jpg');
  background-position: center 52%;
}

.home .front-page .section:nth-of-type(2) .three-grid .reason-item:nth-child(1)::before {
  background-image: url('/wp-content/uploads/2026/07/feature-01-team.jpeg');
  background-position: center center;
}

.home .front-page .section:nth-of-type(2) .three-grid .reason-item:nth-child(2)::before {
  background-image: url('/wp-content/themes/gyoseishoshi-theme/assets/images/home-for-business-partner-handshake.jpg');
  background-position: center 52%;
}

.home .front-page .section:nth-of-type(2) .three-grid .reason-item:nth-child(3)::before {
  background-image: url('/wp-content/themes/gyoseishoshi-theme/assets/images/home-for-business-notes-laptop.jpg');
  background-position: center 52%;
}

.home .front-page .section:nth-of-type(5) .three-grid .reason-item:nth-child(1)::before {
  background-image: url('/wp-content/themes/gyoseishoshi-theme/assets/images/home-reason-01.jpg');
  background-position: center center;
}

.home .front-page .section:nth-of-type(5) .three-grid .reason-item:nth-child(2)::before {
  background-image: url('/wp-content/themes/gyoseishoshi-theme/assets/images/home-reason-02.jpg');
  background-position: center center;
}

.home .front-page .section:nth-of-type(5) .three-grid .reason-item:nth-child(3)::before {
  background-image: url('/wp-content/themes/gyoseishoshi-theme/assets/images/home-reason-03.jpg');
  background-position: center center;
}

/* 2026-06-19: unify buttons to square corners. */
.home .cta-link-primary,
.home .cta-link-secondary,
.home .document-cta,
.home .header-consult-cta,
.home .wpcf7-submit,
.home .form-submit-button,
.home .service-summary-link,
.home .page-link-button,
.home button,
.home input[type="submit"] {
  border-radius: 0 !important;
}

/* 2026-06-19: remove footer structural divider lines. */
.home .site-footer,
.home .footer-main,
.home .footer-bottom,
.home .footer-brand {
  border: 0 !important;
}

.home .footer-brand {
  padding-left: 0 !important;
}

/* 2026-06-19: full-bleed left hero portrait. */
@media (min-width: 981px) {
  .home .front-page .hero {
    min-height: calc(100vh - 96px);
  }

  .home .front-page .hero > .container.hero-stage {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 !important;
    min-height: calc(100vh - 96px);
    grid-template-columns: minmax(420px, 462px) minmax(0, 465px) minmax(344px, 360px);
    gap: clamp(44px, 3.8vw, 56px);
    align-items: stretch;
    justify-content: start;
  }

  .home .front-page .hero-person,
  .home .front-page .hero-person img {
    height: calc(100vh - 96px);
    min-height: calc(100vh - 96px);
  }

  .home .front-page .hero-person {
    align-self: stretch;
    justify-self: stretch;
    width: 100%;
    margin: 0;
    overflow: hidden;
  }

  .home .front-page .hero-person img {
    width: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center center;
  }

  .home .front-page .hero-person .hero-person-caption {
    display: none;
  }

  .home .front-page .hero-message {
    justify-content: flex-end;
    padding-bottom: clamp(48px, 6vh, 60px);
  }

  .home .hero-form-panel {
    align-self: end;
    margin-bottom: clamp(48px, 6vh, 60px);
  }

  .home .front-page .hero-message .hero-metrics-text {
    display: block;
    width: 100%;
    margin-top: 24px;
    padding: 18px 20px;
    border: 1px solid rgba(0, 59, 97, 0.18);
    background: linear-gradient(135deg, rgba(226, 236, 243, 0.88) 0%, rgba(244, 248, 250, 0.82) 100%);
  }

  .home .front-page .hero-message .hero-metrics-text p {
    margin: 0;
    color: #073656;
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.75;
  }
}

.home .front-page .hero-message .hero-metrics-text {
  display: block;
}

.home .front-page .hero-message .hero-metrics-text p {
  width: 100%;
  margin: 0;
}

@media (max-width: 980px) {
  .home .front-page .hero-message .hero-metrics-text {
    display: block;
    padding: 16px 18px;
  }

  .home .front-page .hero-message .hero-metrics-text p {
    color: #073656;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.75;
  }
}

/* Migrated top sandbox CSS block 2 */
@media (min-width: 981px) {
  .home .front-page .hero {
    min-height: 520px !important;
    align-content: start !important;
  }

  .home .front-page .hero > .container.hero-stage {
    box-sizing: border-box !important;
    min-height: 520px !important;
    height: 520px !important;
    padding-bottom: 50px !important;
    grid-template-columns: minmax(390px, 420px) minmax(0, 465px) minmax(344px, 360px) !important;
    gap: clamp(34px, 3.2vw, 48px) !important;
    align-items: end !important;
  }

  .home .front-page .hero-person,
  .home .front-page .hero-person img {
    height: 400px !important;
    min-height: 400px !important;
  }

  .home .front-page .hero-person {
    align-self: end !important;
    margin-top: 0 !important;
  }

  .home .front-page .hero-person img {
    object-position: center top !important;
  }

  .home .front-page .hero-message {
    min-height: 0 !important;
    align-self: end !important;
    justify-content: flex-end !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .home .front-page .hero-message h1 {
    margin-bottom: 18px !important;
    font-size: clamp(42px, 3.5vw, 56px) !important;
    line-height: 1.4 !important;
  }

  .home .front-page .hero-line {
    margin-bottom: 18px !important;
  }

  .home .front-page .hero-message .lead {
    font-size: clamp(14px, 1vw, 17px) !important;
    line-height: 1.75 !important;
  }

  .home .front-page .hero-message .hero-metrics-text {
    margin-top: 18px !important;
    padding: 14px 16px !important;
  }

  .home .front-page .hero-message .hero-metrics-text p {
    font-size: 14px !important;
    line-height: 1.7 !important;
  }

  .home .hero-form-panel {
    align-self: end !important;
    min-height: 0 !important;
    height: auto !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
}

.home .hero-form-panel .top-contact-main {
  gap: 8px !important;
  padding: 14px 16px !important;
}

.home .hero-form-panel .top-contact-copy {
  padding-bottom: 8px !important;
}

.home .hero-form-panel .top-contact-copy h2 {
  font-size: 18px !important;
  line-height: 1.35 !important;
}

.home .hero-form-panel .wpcf7-form {
  gap: 6px !important;
}

.home .hero-form-panel .wpcf7-form p {
  margin: 0 !important;
}

.home .hero-form-panel .wpcf7-form label.lc-top-compact-field,
.home .hero-form-panel .wpcf7-form label.lc-top-compact-textarea {
  display: grid !important;
  grid-template-columns: 74px minmax(0, 1fr);
  column-gap: 8px;
  align-items: center;
  margin: 0 !important;
  color: transparent;
  font-size: 0 !important;
  line-height: 1 !important;
}

.home .hero-form-panel .wpcf7-form label.lc-top-compact-textarea {
  align-items: start;
}

.home .hero-form-panel .wpcf7-form .lc-top-field-label {
  grid-column: 1;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--fv-navy-deep) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  white-space: nowrap;
}

.home .hero-form-panel .wpcf7-form label.lc-top-compact-field > br {
  display: none !important;
}

.home .hero-form-panel .wpcf7-form .lc-top-field-label .required {
  display: inline !important;
  min-width: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #c62828 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}

.home .hero-form-panel .wpcf7-form label.lc-top-compact-field .optional {
  display: none !important;
}

.home .hero-form-panel .wpcf7-form label.lc-top-compact-field .wpcf7-form-control-wrap,
.home .hero-form-panel .wpcf7-form label.lc-top-compact-textarea .wpcf7-form-control-wrap {
  display: block !important;
  grid-column: 2 !important;
  margin-top: 0 !important;
  width: 100%;
}

.home .hero-form-panel .wpcf7-text,
.home .hero-form-panel .wpcf7-email,
.home .hero-form-panel .wpcf7-tel,
.home .hero-form-panel .wpcf7-select {
  min-height: 30px !important;
  height: 30px !important;
  padding: 4px 9px !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
}

.home .hero-form-panel .wpcf7-form label.lc-top-compact-textarea > br {
  display: none !important;
}

.home .hero-form-panel .wpcf7-textarea {
  height: 68px !important;
  min-height: 68px !important;
  padding: 6px 9px !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
}

.home .hero-form-panel .wpcf7-acceptance label {
  color: var(--fv-navy-deep) !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
}

.home .hero-form-panel .wpcf7-submit {
  min-height: 36px !important;
  padding: 7px 16px !important;
  font-size: 14px !important;
}

@media (max-width: 980px) {
  .home .front-page .hero {
    min-height: 0 !important;
  }

  .home .front-page .hero > .container.hero-stage {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 24px !important;
    min-height: 0 !important;
    height: auto !important;
    padding-top: 28px !important;
    padding-bottom: 42px !important;
  }

  .home .front-page .hero-person {
    order: 1 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
  }

  .home .front-page .hero-person img {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 16 / 10 !important;
    object-fit: cover !important;
    object-position: center top !important;
  }

  .home .front-page .hero-person figcaption,
  .home .front-page .hero-person .caption,
  .home .front-page .hero-person .hero-person-caption,
  .home .front-page .hero-person .hero-profile,
  .home .front-page .hero-person .representative-name {
    display: none !important;
  }

  .home .front-page .hero-message {
    order: 2 !important;
    width: 100% !important;
    min-height: 0 !important;
    padding: 0 !important;
  }

  .home .hero-form-panel {
    order: 3 !important;
    width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
  }

  .home .hero-form-panel .wpcf7-form label.lc-top-compact-field,
  .home .hero-form-panel .wpcf7-form label.lc-top-compact-textarea {
    grid-template-columns: 74px minmax(0, 1fr);
  }

  .home .front-page .hero-message .metric strong,
  .home .front-page .hero-message .hero-metrics-text p {
    white-space: normal !important;
    overflow-wrap: anywhere;
  }
}

/* 2026-06-25: image-based first view with overlaid consultation form. */
.home .front-page .hero {
  min-height: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  background: transparent !important;
}

.home .front-page .hero::after {
  background: var(--fv-line-soft) !important;
}

.home .front-page .hero > .container.hero-stage {
  position: relative !important;
  z-index: 1 !important;
  display: block !important;
  width: min(100%, 1920px) !important;
  max-width: none !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

.home .front-page .hero-message,
.home .front-page .hero-person {
  display: none !important;
}

.home .front-page .hero-visual {
  display: block !important;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.home .front-page .hero-visual picture,
.home .front-page .hero-visual img {
  display: block;
  width: 100%;
}

.home .front-page .hero-visual img {
  height: auto !important;
  max-width: none !important;
  object-fit: contain !important;
  object-position: center center !important;
  filter: none !important;
}

.home .front-page .hero-form-panel {
  position: absolute !important;
  z-index: 3 !important;
  top: 50% !important;
  right: 50px !important;
  width: clamp(318px, 25vw, 360px) !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 !important;
  transform: translateY(-50%);
}

.home .hero-form-panel .top-contact-main {
  border-color: rgba(0, 59, 97, 0.2) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 10px 30px rgba(0, 48, 79, 0.08) !important;
}

@media (min-width: 768px) and (max-width: 1100px) {
  .home .front-page .hero > .container.hero-stage {
    display: flex !important;
    width: min(100%, 1920px) !important;
    flex-direction: column !important;
    gap: 18px !important;
  }

  .home .front-page .hero-form-panel {
    position: static !important;
    width: min(100%, 390px) !important;
    margin: 0 auto !important;
    transform: none !important;
  }

  .home .hero-form-panel .top-contact-main {
    padding: 12px 14px !important;
  }
}

@media (max-width: 767px) {
  .home .front-page .hero > .container.hero-stage {
    display: flex !important;
    width: 100% !important;
    flex-direction: column !important;
    gap: 18px !important;
    padding: 0 !important;
  }

  .home .front-page .hero-form-panel {
    position: static !important;
    width: min(calc(100% - 28px), 520px) !important;
    margin: 0 auto !important;
    transform: none !important;
  }

  .home .front-page .hero-visual img {
    width: 100% !important;
  }

  .home .hero-form-panel .top-contact-main {
    padding: 16px !important;
  }
}

/* 2026-07-02: shorter PC hero image adjustment. */
@media (min-width: 1200px) {
  .home .front-page .hero-form-panel {
    width: clamp(300px, 23vw, 340px) !important;
  }

  .home .hero-form-panel .top-contact-main {
    gap: 6px !important;
    padding: 12px 14px !important;
  }

  .home .hero-form-panel .top-contact-copy {
    padding-bottom: 6px !important;
  }

  .home .hero-form-panel .top-contact-copy h2 {
    font-size: 17px !important;
    line-height: 1.32 !important;
  }

  .home .hero-form-panel .wpcf7-form {
    gap: 5px !important;
  }

  .home .hero-form-panel .wpcf7-text,
  .home .hero-form-panel .wpcf7-email,
  .home .hero-form-panel .wpcf7-tel,
  .home .hero-form-panel .wpcf7-select {
    min-height: 28px !important;
    height: 28px !important;
  }

  .home .hero-form-panel .wpcf7-textarea {
    height: 56px !important;
    min-height: 56px !important;
  }

  .home .hero-form-panel .wpcf7-acceptance label {
    font-size: 11px !important;
    line-height: 1.4 !important;
  }

  .home .hero-form-panel .wpcf7-submit {
    min-height: 34px !important;
    padding: 6px 16px !important;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .home .front-page .hero > .container.hero-stage {
    display: flex !important;
    width: min(100%, 1920px) !important;
    flex-direction: column !important;
    gap: 16px !important;
  }

  .home .front-page .hero-form-panel {
    position: static !important;
    width: min(100%, 390px) !important;
    margin: 0 auto !important;
    transform: none !important;
  }

  .home .hero-form-panel .top-contact-main {
    padding: 12px 14px !important;
  }
}
