:root {
  --yuta-cro-ink: #183653;
  --yuta-cro-muted: #475569;
  --yuta-cro-blue: #1769aa;
  --yuta-cro-blue-dark: #0f4f83;
  --yuta-cro-green: #247447;
  --yuta-cro-green-dark: #185632;
  --yuta-cro-surface: #f5f9fc;
  --yuta-cro-border: #cbdde9;
}

body.home .post_content > figure.wp-block-image:first-child,
body.page-id-370 .post_content > figure.wp-block-image:first-child,
body.home section[aria-labelledby="corporate-home-title"],
body.page-id-370 section[aria-labelledby="corporate-home-title"],
body.home .yuta-home-intro,
body.page-id-370 .yuta-home-intro,
body.page-id-632 .post_content > figure.wp-block-image:first-child {
  display: none !important;
}

.yuta-cro-home-hero + .yh-home > .yh-hero {
  display: none !important;
}

.page-id-632 .c-pageTitle {
  display: none !important;
}

.yuta-cro-home-hero,
.yuta-cro-individual-hero {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  margin: 20px auto 44px;
  padding: clamp(24px, 4vw, 52px);
  border: 1px solid var(--yuta-cro-border);
  border-radius: 24px;
  background: linear-gradient(135deg, #f2fbff 0%, #ffffff 56%, #f3fbf5 100%);
  color: var(--yuta-cro-ink);
  overflow: hidden;
}

.yuta-cro-home-copy,
.yuta-cro-individual-hero > div {
  min-width: 0;
}

.yuta-cro-eyebrow,
.yuta-cro-audience-label {
  margin: 0 0 8px;
  color: var(--yuta-cro-blue-dark);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.yuta-cro-home-hero h1,
.yuta-cro-individual-hero h1 {
  margin: 0 0 14px;
  color: var(--yuta-cro-ink);
  font-size: clamp(30px, 4.3vw, 54px);
  line-height: 1.28;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
}

.yuta-cro-lead {
  margin: 0 0 24px;
  color: var(--yuta-cro-muted);
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.8;
}

.yuta-cro-home-image,
.yuta-cro-individual-hero figure {
  margin: 0;
}

.yuta-cro-home-image img,
.yuta-cro-individual-hero figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  object-fit: cover;
}

.yuta-cro-audience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.yuta-cro-audience-grid article {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--yuta-cro-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
}

.yuta-cro-audience-grid h2,
.yuta-cro-context-cta h2 {
  margin: 0 0 16px;
  color: var(--yuta-cro-ink);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.yuta-cro-button {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: auto;
  padding: 12px 18px;
  border: 2px solid var(--yuta-cro-blue);
  border-radius: 999px;
  background: var(--yuta-cro-blue);
  color: #fff !important;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
  text-decoration: none !important;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.yuta-cro-button:hover {
  border-color: var(--yuta-cro-blue-dark);
  background: var(--yuta-cro-blue-dark);
}

.yuta-cro-button--corporate {
  border-color: var(--yuta-cro-green);
  background: var(--yuta-cro-green);
}

.yuta-cro-button--corporate:hover {
  border-color: var(--yuta-cro-green-dark);
  background: var(--yuta-cro-green-dark);
}

.yuta-cro-button--outline {
  background: #fff;
  color: var(--yuta-cro-green-dark) !important;
}

.yuta-cro-button:focus-visible,
.yuta-cro-secondary-link a:focus-visible,
.yuta-cro-rate-link a:focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 3px;
}

.yuta-cro-facts {
  display: grid;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.yuta-cro-facts li {
  display: grid;
  grid-template-columns: 7.5em 1fr;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff;
  line-height: 1.6;
}

.yuta-cro-response-note,
.yuta-cro-inline-cta p {
  margin: 10px 0 0;
  color: var(--yuta-cro-muted);
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
}

.yuta-cro-inline-cta,
.yuta-cro-corporate-bridge,
.yuta-cro-context-cta {
  box-sizing: border-box;
  width: min(760px, 100%);
  margin: 34px auto;
  padding: 22px;
  border: 1px solid var(--yuta-cro-border);
  border-radius: 16px;
  background: var(--yuta-cro-surface);
}

.yuta-cro-inline-cta .yuta-cro-button,
.yuta-cro-corporate-bridge .yuta-cro-button,
.yuta-cro-context-cta .yuta-cro-button {
  max-width: 480px;
  margin-right: auto;
  margin-left: auto;
}

.yuta-cro-corporate-bridge {
  text-align: center;
}

.yuta-cro-corporate-actions {
  display: grid;
  gap: 10px;
  max-width: 520px;
  margin: 24px 0 14px;
}

.yuta-cro-rate-link {
  margin: 12px 0 0;
}

.yuta-cro-rate-link a,
.yuta-cro-secondary-link a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--yuta-cro-blue-dark);
  font-weight: 700;
  text-underline-offset: 4px;
}

.yuta-cro-context-cta {
  margin-top: 48px;
}

.yuta-cro-context-cta > p:not(.yuta-cro-audience-label):not(.yuta-cro-secondary-link) {
  color: var(--yuta-cro-muted);
  line-height: 1.8;
}

.yuta-cro-secondary-link {
  margin: 8px 0 0;
  text-align: center;
}

.yuta-cro-table-hint {
  margin: 10px 0 6px;
  color: var(--yuta-cro-muted);
  font-size: 13px;
}

.wp-block-table {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 960px) {
  .yuta-cro-home-hero,
  .yuta-cro-individual-hero {
    grid-template-columns: 1fr;
  }

  .yuta-cro-home-image,
  .yuta-cro-individual-hero figure {
    order: initial;
  }
}

@media (max-width: 640px) {
  /* The existing site-wide fixed inquiry bar can cover page-specific buttons
     and forms. Keep its saved settings intact, but suppress the rendered bar. */
  .yli-mobile-cta {
    display: none !important;
  }

  .yuta-cro-home-hero,
  .yuta-cro-individual-hero {
    width: calc(100% - 20px);
    gap: 14px;
    margin-top: 10px;
    padding: 12px 16px;
    border-radius: 18px;
  }

  .yuta-cro-home-hero h1,
  .yuta-cro-individual-hero h1 {
    font-size: clamp(27px, 8vw, 36px);
  }

  .yuta-cro-audience-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .yuta-cro-facts li {
    grid-template-columns: 5.5em minmax(0, 1fr);
    gap: 6px;
    margin: 0 !important;
    padding: 8px 10px;
    font-size: 14px;
    line-height: 1.45;
  }

  .yuta-cro-facts {
    padding-left: 0 !important;
  }

  .yuta-cro-individual-hero .yuta-cro-lead {
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.65;
  }

  .yuta-cro-inline-cta,
  .yuta-cro-corporate-bridge,
  .yuta-cro-context-cta {
    padding: 18px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .yuta-cro-button {
    transition: none;
  }
}
