/* SEIRYO LINE Theme 6.7.0
 * Reference-image CTA design: rectangular face, italic display type,
 * and two stepped shadows. Existing Customizer color variables remain active.
 */

:root {
  --sl-cta-shadow-dark: rgba(17, 20, 24, .62);
  --sl-cta-shadow-light: rgba(17, 20, 24, .20);
  --sl-cta-font: "Seiryo Japanese", "BIZ UDPGothic", "Yu Gothic UI", Meiryo, sans-serif;
}

/* Shared face used only by prominent homepage calls to action. */
body.is-front-page :where(
  .intro .text-link,
  .safety-button,
  .recruit-inner .button-outline,
  .company-actions a,
  .news .section-heading .text-link,
  .footer-cta .button,
  .footer-cta .sl-button
) {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: clamp(150px, 14vw, 260px);
  min-height: 46px;
  padding: 10px 22px;
  border: 0 !important;
  border-radius: 0 !important;
  text-decoration: none !important;
  font-family: var(--sl-cta-font);
  font-size: clamp(14px, 1vw, 17px);
  font-style: italic;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: .07em;
  box-shadow:
    6px 6px 0 var(--sl-cta-shadow-dark),
    11px 10px 0 var(--sl-cta-shadow-light) !important;
  transform: translate(0, 0);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

/* Blue buttons from the reference. */
body.is-front-page :where(
  .intro .text-link,
  .company-actions a
) {
  background: var(--sl-navy, #12366f) !important;
  color: #fff !important;
}

/* Yellow buttons preserve each section's editable theme colors. */
body.is-front-page .safety-button {
  background: var(--sl-yellow, #ffe500) !important;
  color: #111 !important;
}

body.is-front-page .recruit-inner .button-outline {
  background: var(--sl-yellow, #ffe500) !important;
  color: #111 !important;
}

body.is-front-page .news .section-heading .text-link {
  background: var(--sl-yellow, #ffe500) !important;
  color: #111 !important;
}

body.is-front-page :where(.footer-cta .button, .footer-cta .sl-button) {
  background: var(--sl-yellow, #ffe500) !important;
  color: #111 !important;
}

/* The reference buttons do not display a separate arrow. */
body.is-front-page .intro .text-link > span,
body.is-front-page .safety-button > span,
body.is-front-page .recruit-inner .button-outline > span,
body.is-front-page .company-actions a > b,
body.is-front-page .news .section-heading .text-link > span,
body.is-front-page .footer-cta :where(.button, .sl-button) > .sl-button__icon {
  display: none !important;
}

@media (hover: hover) and (pointer: fine) {
  body.is-front-page :where(
    .intro .text-link,
    .safety-button,
    .recruit-inner .button-outline,
    .company-actions a,
    .news .section-heading .text-link,
    .footer-cta .button,
    .footer-cta .sl-button
  ):hover {
    filter: brightness(1.05);
    transform: translate(4px, 4px);
    box-shadow:
      3px 3px 0 var(--sl-cta-shadow-dark),
      7px 6px 0 var(--sl-cta-shadow-light) !important;
  }
}

body.is-front-page :where(
  .intro .text-link,
  .safety-button,
  .recruit-inner .button-outline,
  .company-actions a,
  .news .section-heading .text-link,
  .footer-cta .button,
  .footer-cta .sl-button
):focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 5px;
}

/* Header variation: same visual language at a compact navigation scale. */
.site-header :where(.header-action, .header-contact) {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  min-height: 56px;
  padding: 13px 25px !important;
  clip-path: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--sl-navy, #12366f) !important;
  color: #fff !important;
  font-family: var(--sl-cta-font);
  font-size: 16px !important;
  font-style: italic;
  font-weight: 900 !important;
  letter-spacing: .07em !important;
  box-shadow:
    7px 7px 0 var(--sl-cta-shadow-dark),
    13px 13px 0 var(--sl-cta-shadow-light);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.site-header :where(.header-action, .header-contact) > span {
  display: none !important;
}

@media (hover: hover) and (pointer: fine) {
  .site-header :where(.header-action, .header-contact):hover {
    color: #fff !important;
    filter: brightness(1.08);
    transform: translate(3px, 3px);
    box-shadow:
      4px 4px 0 var(--sl-cta-shadow-dark),
      9px 9px 0 var(--sl-cta-shadow-light);
  }
}

/* Mobile menu buttons keep the style but fit the available width. */
.mobile-menu-panel :where(.mobile-header-action, .mobile-contact-button) {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% - 14px);
  min-height: 58px;
  margin: 0 14px 14px 0;
  padding: 14px 22px;
  border: 0;
  border-radius: 0;
  background: var(--sl-yellow, #ffe500) !important;
  color: #111 !important;
  font-family: var(--sl-cta-font);
  font-size: 18px;
  font-style: italic;
  font-weight: 900;
  letter-spacing: .06em;
  box-shadow:
    7px 7px 0 var(--sl-cta-shadow-dark),
    13px 13px 0 var(--sl-cta-shadow-light);
}

.mobile-menu-panel :where(.mobile-header-action, .mobile-contact-button) > span {
  display: none !important;
}

@media (max-width: 900px) {
  body.is-front-page :where(
    .intro .text-link,
    .safety-button,
    .recruit-inner .button-outline,
    .company-actions a,
    .news .section-heading .text-link,
    .footer-cta .button,
    .footer-cta .sl-button
  ) {
    width: auto;
    min-width: min(100%, 210px);
    min-height: 46px;
    padding: 10px 18px;
    font-size: clamp(14px, 4vw, 17px);
    box-shadow:
      5px 5px 0 var(--sl-cta-shadow-dark),
      9px 9px 0 var(--sl-cta-shadow-light) !important;
  }

  body.is-front-page .recruit-inner .button-outline {
    width: min(100%, 210px);
  }
}

/* Inner-page button contract. Button label, URL and alignment remain editable
 * in the WordPress block editor; appearance is editable in Customizer. */
body:not(.is-front-page) :where(
  .sl-entry-content .wp-block-button__link,
  .sl-entry-content .wp-element-button,
  .sl-entry-content .sl-button,
  .sl-entry-content a.button,
  .sl-entry-content .sl-reference-button,
  .sl-entry-content a[class*="button"],
  .sl-entry-content a[class*="btn"],
  .sl-entry-content button[type="submit"],
  .sl-entry-content input[type="submit"],
  .seiryo-pattern-contact .wp-block-button__link
) {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 150px;
  min-height: 44px;
  padding: var(--sl-button-padding-y, 11px) var(--sl-button-padding-x, 22px) !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--sl-button-bg, #ffe500) !important;
  color: var(--sl-button-text, #111) !important;
  font-family: var(--sl-cta-font);
  font-size: var(--sl-button-font-size, 16px) !important;
  font-style: italic;
  font-weight: 900 !important;
  line-height: 1.25;
  letter-spacing: .06em;
  text-decoration: none !important;
  box-shadow:
    6px 6px 0 var(--sl-button-shadow-dark, #4d4d4d),
    11px 10px 0 var(--sl-button-shadow-light, #c8c8c8) !important;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

@media (hover: hover) and (pointer: fine) {
  body:not(.is-front-page) :where(
    .sl-entry-content .wp-block-button__link,
    .sl-entry-content .wp-element-button,
    .sl-entry-content .sl-button,
    .sl-entry-content a.button,
    .sl-entry-content .sl-reference-button,
    .sl-entry-content a[class*="button"],
    .sl-entry-content a[class*="btn"],
    .sl-entry-content button[type="submit"],
    .sl-entry-content input[type="submit"],
    .seiryo-pattern-contact .wp-block-button__link
  ):hover {
    color: var(--sl-button-text, #111) !important;
    filter: brightness(1.04);
    transform: translate(3px, 3px);
    box-shadow:
      3px 3px 0 var(--sl-button-shadow-dark, #4d4d4d),
      7px 6px 0 var(--sl-button-shadow-light, #c8c8c8) !important;
  }
}

body:not(.is-front-page) :where(
  .sl-entry-content .wp-block-button__link,
  .sl-entry-content .wp-element-button,
  .sl-entry-content .sl-button,
  .sl-entry-content a.button,
  .sl-entry-content .sl-reference-button,
  .sl-entry-content a[class*="button"],
  .sl-entry-content a[class*="btn"],
  .sl-entry-content button[type="submit"],
  .sl-entry-content input[type="submit"],
  .seiryo-pattern-contact .wp-block-button__link
):focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 5px;
}

/* The homepage image HERO is the only theme HERO. */
body:not(.is-front-page) :where(.page-hero, .page-hero-builder, .sl-news-hero) {
  display: none !important;
}

body:not(.is-front-page) .site-main {
  padding-top: var(--sl-header-height, 87px);
}

/* Remove the space formerly reserved for lower-page HERO frames. */
body:not(.is-front-page) .page-builder-content {
  padding-top: 0 !important;
}

body:not(.is-front-page) .page-builder-content > .sl-entry-content {
  padding-top: 0 !important;
}

body.single .page-content {
  padding-top: 0 !important;
}

body.blog .sl-news-index,
body.archive .content-wrap,
body.search .content-wrap {
  padding-top: 40px !important;
}

/* Framed navigation links keep their border/background colors on hover.
 * Only the label moves, providing a quieter interaction. */
.strengths-overview .strengths-nav a,
.strengths-overview .strengths-nav a :where(small, strong, span, b),
.safety-checks a span,
.initiative-links a span {
  transition: transform .2s ease, color .2s ease;
}

.strengths-overview .strengths-nav a:hover {
  background: transparent !important;
  color: var(--sl-strengths-link) !important;
  transform: none !important;
}

.strengths-overview .strengths-nav a:hover small {
  color: var(--sl-navy) !important;
}

.strengths-overview .strengths-nav a:hover span {
  color: var(--sl-muted) !important;
}

.strengths-overview .strengths-nav a:hover :where(strong, span, b) {
  transform: translateX(7px);
}

.safety-checks a:hover {
  color: var(--sl-safety-link) !important;
  background: transparent !important;
  border-bottom-color: rgba(255,255,255,.22) !important;
}

.safety-checks a:hover span {
  transform: translateX(7px);
}

.health-section .initiative-links > a:hover,
.dx-section .initiative-links > a:hover {
  padding-left: 4px !important;
  padding-right: 4px !important;
  background: transparent !important;
}

.health-section .initiative-links > a:hover {
  color: var(--sl-health-link) !important;
  border-bottom-color: rgba(18,54,111,.25) !important;
}

.dx-section .initiative-links > a:hover {
  color: var(--sl-dx-link) !important;
  border-bottom-color: rgba(255,255,255,.22) !important;
}

.health-section .initiative-links > a:hover span,
.dx-section .initiative-links > a:hover span {
  color: inherit !important;
  transform: translateX(7px);
}

.sl-news-filters a:not(.is-current),
.navigation.pagination a.page-numbers {
  transition: text-indent .2s ease, color .2s ease;
}

.sl-news-filters a:not(.is-current):hover {
  border-color: var(--sl-page-line) !important;
  background: #fff !important;
  color: var(--sl-page-navy) !important;
  text-indent: 5px;
}

.navigation.pagination a.page-numbers:hover {
  border-color: var(--sl-page-line) !important;
  background: #fff !important;
  color: var(--sl-page-navy) !important;
  text-indent: 5px;
}

/* The label was removed from markup; this also protects older cached markup. */
.safety-media > span {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  body.is-front-page :where(
    .intro .text-link,
    .safety-button,
    .recruit-inner .button-outline,
    .company-actions a,
    .news .section-heading .text-link,
    .footer-cta .button,
    .footer-cta .sl-button
  ),
  .site-header :where(.header-action, .header-contact) {
    transition: none;
  }
}
