/*
 * DAIDO shared action buttons
 * Keeps contextual colours while unifying shape, spacing and interaction.
 */
/* Category headings are full-width links with a persistent arrow affordance. */
.global-nav .mega-title {
  position: relative;
  padding-right: 54px;
  transition: border-color .2s ease;
}
.global-nav .mega-title__arrow {
  position: absolute;
  right: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: #fff;
  background: transparent;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}
.global-nav .mega-title__arrow::before {
  content: '';
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: var(--mega-arrow) center / contain no-repeat;
  mask: var(--mega-arrow) center / contain no-repeat;
}
.global-nav {
  --mega-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14m-6-6 6 6-6 6' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
/* White circular markers; SVG geometry keeps the arrows optically centred. */
.global-nav .mega-group li a {
  position: relative;
  padding-left: 28px;
}
.global-nav .mega-group li a::before {
  content: '';
  position: absolute;
  left: 0;
  top: calc(3px + .775em);
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 17 10-10M7 7h10v10' fill='none' stroke='%23082d4c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
  transform: translateY(-50%);
  transition: background-color .2s ease;
}
.global-nav .mega-group li a:is(:hover, :focus-visible)::before {
  background-color: var(--yellow, #f5b516);
}
.global-nav .mega-group li a:focus-visible {
  outline: 2px solid var(--yellow, #f5b516);
  outline-offset: 3px;
}
.global-nav .mega-title :is(small, b) {
  transition: color .2s ease;
}
.global-nav .mega-title:is(:hover, :focus-visible) {
  border-bottom-color: var(--yellow, #f5b516);
}
.global-nav .mega-title:is(:hover, :focus-visible) :is(small, b) {
  color: var(--yellow, #f5b516);
}
.global-nav .mega-title:is(:hover, :focus-visible) .mega-title__arrow {
  border-color: var(--yellow, #f5b516);
  color: #082d4c;
  background-color: var(--yellow, #f5b516);
}
.global-nav .mega-title:focus-visible {
  outline: 2px solid var(--yellow, #f5b516);
  outline-offset: 5px;
}
@media (prefers-reduced-motion: reduce) {
  .global-nav .mega-title,
  .global-nav .mega-title :is(small, b, .mega-title__arrow),
  .global-nav .mega-group li a::before {
    transition: none;
  }
}

:root {
  --daido-btn-blue: #0b71ae;
  --daido-btn-navy: #082d4c;
  --daido-btn-orange: #f5b516;
  --daido-btn-rainbow: linear-gradient(
    112deg,
    #f3f8fa 0%,
    #49c7d0 12%,
    #7c72df 25%,
    #dc68ae 38%,
    #f3b63f 51%,
    #7bd3b0 64%,
    #64a8df 77%,
    #d985b8 89%,
    #f3f8fa 100%
  );
}

.press-button {
  --daido-btn-bg: var(--daido-btn-blue);
  --daido-btn-ink: #fff;
  --daido-btn-circle: #fff;
  --daido-btn-arrow: var(--daido-btn-navy);
  --daido-btn-icon: var(--daido-btn-orange);
  isolation: isolate;
  box-sizing: border-box;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: min(100%, 34rem);
  min-width: 0;
  min-height: clamp(4.25rem, 5.4vw, 5.5rem);
  padding: 1rem clamp(4.75rem, 6vw, 6rem) 1rem clamp(3.55rem, 4.4vw, 4.5rem);
  overflow: visible;
  border: 2px solid var(--daido-btn-navy);
  border-radius: 999px;
  color: var(--daido-btn-ink);
  background: var(--daido-btn-bg);
  box-shadow: none;
  font-size: clamp(0.92rem, 1.15vw, 1.08rem);
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: 0.06em;
  text-align: left;
  text-decoration: none;
  transform: translateY(0);
  transition:
    color 0.25s ease,
    background-color 0.25s ease,
    border-width 0.2s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

/* Replace the former two-square ornament with a small rounded forward marker. */
.press-button::before {
  position: absolute;
  z-index: 2;
  left: clamp(1.35rem, 1.8vw, 1.8rem);
  top: 50%;
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: var(--daido-btn-icon);
  box-shadow: none;
  content: '';
  pointer-events: none;
  transform: translateY(-50%);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 3.2C4 1.65 5.7.7 7 1.55l13.8 8.85c1.2.77 1.2 2.43 0 3.2L7 22.45C5.7 23.3 4 22.35 4 20.8V3.2Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 3.2C4 1.65 5.7.7 7 1.55l13.8 8.85c1.2.77 1.2 2.43 0 3.2L7 22.45C5.7 23.3 4 22.35 4 20.8V3.2Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.hero-image-cta::before,
.st-cta a::before,
.sl-cta a::before {
  position: absolute;
  z-index: -1;
  inset: -0.16rem;
  width: auto;
  height: auto;
  margin: 0;
  border-radius: inherit;
  background: var(--daido-btn-rainbow);
  background-size: 260% 100%;
  box-shadow: 0 0 0.8rem rgba(73, 199, 208, 0.24);
  opacity: 0;
  content: '';
  pointer-events: none;
  transition:
    inset 0.22s ease,
    opacity 0.22s ease,
    box-shadow 0.22s ease;
}

.press-button::after {
  position: absolute;
  z-index: 2;
  right: 0.55rem;
  top: 50%;
  display: grid;
  width: clamp(3rem, 4vw, 4.25rem);
  aspect-ratio: 1;
  place-items: center;
  border: 2px solid var(--daido-btn-navy);
  border-radius: 50%;
  color: var(--daido-btn-arrow);
  background: var(--daido-btn-circle);
  font:
    900 clamp(1.25rem, 1.8vw, 1.75rem)/1 Arial,
    sans-serif;
  content: '→';
  transform: translateY(-50%);
  transition:
    transform 0.25s ease,
    color 0.25s ease,
    background-color 0.25s ease;
}

.press-button:hover,
.press-button:focus-visible {
  border: 0.38rem solid transparent;
  background:
    linear-gradient(var(--daido-btn-bg), var(--daido-btn-bg)) padding-box,
    var(--daido-btn-rainbow) border-box;
  background-size:
    100% 100%,
    260% 100%;
  filter: none;
  transform: translateY(-0.2rem);
  box-shadow: 0 0.7rem 1.5rem rgba(8, 45, 76, 0.16);
  animation: daido-submit-rainbow 1.9s linear infinite;
}

.hero-image-cta:hover::before,
.hero-image-cta:focus-visible::before,
.st-cta a:hover::before,
.st-cta a:focus-visible::before,
.sl-cta a:hover::before,
.sl-cta a:focus-visible::before {
  inset: -0.38rem;
  opacity: 1;
  box-shadow:
    0 0 0.95rem rgba(73, 199, 208, 0.42),
    0 0 1.55rem rgba(217, 133, 184, 0.2);
  animation: daido-button-rainbow 1.9s linear infinite;
}

.press-button:hover::after,
.press-button:focus-visible::after {
  transform: translate(0.18rem, -50%);
}

.press-button:active {
  transform: translateY(0.08rem);
  box-shadow: none;
}

.press-button:focus-visible,
.hero-image-cta:focus-visible,
.st-cta a:focus-visible,
.sl-cta a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 0.55rem;
}

.press-button--yellow {
  --daido-btn-bg: var(--daido-btn-orange);
  --daido-btn-ink: var(--daido-btn-navy);
  --daido-btn-circle: #fff;
  --daido-btn-arrow: var(--daido-btn-navy);
  --daido-btn-icon: var(--daido-btn-navy);
  display: inline-flex;
  min-width: 0;
  color: var(--daido-btn-ink);
  background: var(--daido-btn-bg);
  box-shadow: none;
}

.press-button--wide {
  width: min(100%, 38rem);
  min-width: 0;
  font-size: clamp(1rem, 1.35vw, 1.25rem);
}

.press-button small {
  margin-left: 0.8rem;
  font-size: 0.72rem;
  line-height: 1.45;
}

.press-button:has(> small) {
  display: grid;
  grid-template-columns: 1fr;
  align-content: center;
}

.press-button:has(> small) small {
  margin: 0.18rem 0 0;
}

.press-button > span[aria-hidden='true'] {
  display: none;
}

.press-button > span:not([aria-hidden='true']),
.press-button > small,
.st-cta a > span,
.sl-cta a > span,
.hero-image-cta > img {
  position: relative;
  z-index: 1;
}

/* Swiper crops its viewport: keep the metallic edge inside every slide. */
.swiper-slide .press-button,
.swiper-slide .hero-image-cta {
  z-index: 4;
}

.swiper-slide .hero-image-cta::before {
  inset: -0.14rem;
  box-shadow: none;
}

.swiper-slide .hero-image-cta:hover::before,
.swiper-slide .hero-image-cta:focus-visible::before {
  inset: -0.32rem;
  box-shadow: 0 0 0.85rem rgba(73, 199, 208, 0.38);
}

/* The high-school recruitment site uses the same structure and warmer palette. */
.pop-site .press-button,
.concept-site .press-button {
  border: 2px solid var(--daido-btn-navy);
  border-radius: 999px;
  box-shadow: none;
  overflow: visible;
}

.pop-site .press-button:hover,
.concept-site .press-button:hover {
  transform: translateY(-0.2rem);
  box-shadow: 0 0.7rem 1.5rem rgba(8, 45, 76, 0.16);
}

/* Preserve the artwork buttons while giving them the same luminous response. */
.hero-image-cta {
  isolation: isolate;
  position: relative;
  border-radius: 999px;
}

.hero-image-cta img {
  position: relative;
  z-index: 1;
  border-radius: inherit;
}

/* CTA buttons used by the corporate strength pages. */
.st-cta .st-shell > div {
  gap: 1rem;
  border: 0;
}

.st-cta a {
  isolation: isolate;
  position: relative;
  min-height: 5.75rem;
  padding: 1rem 1rem 1rem 2rem;
  overflow: visible;
  border: 2px solid #d5e0e8;
  border-radius: 999px;
  color: #fff;
  background: transparent;
}

.st-cta a:first-child {
  border-left: 2px solid var(--daido-btn-navy);
}

.st-cta a span,
.sl-cta a span {
  display: grid;
  flex: 0 0 auto;
  width: 3.65rem;
  aspect-ratio: 1;
  place-items: center;
  border: 2px solid var(--daido-btn-navy);
  border-radius: 50%;
  color: var(--daido-btn-navy);
  background: #fff;
  font-size: 1.4rem;
}

.st-cta a.st-cta__primary {
  color: var(--daido-btn-navy) !important;
  background: var(--st-yellow, #f4e64c);
  border-color: var(--st-yellow, #f4e64c);
}

.st-cta a.st-cta__primary:hover,
.st-cta a.st-cta__primary:focus-visible {
  background: #fff;
  border-color: #fff;
}

/* CTA button used by the Shimada recruitment page. */
.sl-cta a {
  isolation: isolate;
  position: relative;
  min-height: 5.5rem;
  padding: 0.7rem 0.7rem 0.7rem 2rem;
  overflow: visible;
  border: 2px solid var(--daido-btn-navy);
  border-radius: 999px;
  box-shadow: none;
}

.sl-cta a:hover {
  transform: translateY(-0.2rem);
  box-shadow: 0 0.7rem 1.5rem rgba(8, 45, 76, 0.16);
}

/* Form controls cannot contain an arrow element, but share the capsule and rainbow edge. */
.corporate-contact .cp-form-submit,
.job-quick-entry .quick-entry-form .wpcf7-submit {
  min-height: 4.5rem;
  padding: 1rem 2rem;
  border: 0.25rem solid transparent;
  border-radius: 999px;
  color: #fff;
  background:
    linear-gradient(var(--daido-btn-blue), var(--daido-btn-blue)) padding-box,
    linear-gradient(var(--daido-btn-blue), var(--daido-btn-blue)) border-box;
  box-shadow: none;
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.corporate-contact .cp-form-submit:hover,
.corporate-contact .cp-form-submit:focus-visible,
.job-quick-entry .quick-entry-form .wpcf7-submit:hover,
.job-quick-entry .quick-entry-form .wpcf7-submit:focus-visible {
  background:
    linear-gradient(var(--daido-btn-blue), var(--daido-btn-blue)) padding-box,
    var(--daido-btn-rainbow) border-box;
  background-size:
    100% 100%,
    300% 100%;
  box-shadow: 0 0.7rem 1.5rem rgba(8, 45, 76, 0.16);
  transform: translateY(-0.2rem);
  animation: daido-submit-rainbow 3.2s linear infinite;
}

@keyframes daido-button-rainbow {
  from {
    background-position: 0% 50%;
  }
  to {
    background-position: 300% 50%;
  }
}

@keyframes daido-submit-rainbow {
  from {
    background-position:
      0 0,
      0% 50%;
  }
  to {
    background-position:
      0 0,
      300% 50%;
  }
}

@media (max-width: 620px) {
  .press-button {
    width: 100%;
    min-height: 4.2rem;
    padding: 0.8rem 4.6rem 0.8rem 3.35rem;
    font-size: 0.9rem;
  }

  .press-button::before {
    left: 1.25rem;
    width: 1.1rem;
    height: 1.1rem;
  }

  .press-button::after {
    right: 0.42rem;
    width: 3.05rem;
  }

  .press-button small {
    display: block;
    margin: 0.2rem 0 0;
  }

  .st-cta .st-shell > div {
    gap: 0.9rem;
  }

  .st-cta a,
  .st-cta a:first-child {
    min-height: 4.75rem;
    padding-left: 1.25rem;
    border: 2px solid #d5e0e8;
  }
}

@media (prefers-reduced-motion: reduce) {
  .press-button,
  .press-button::after,
  .hero-image-cta,
  .st-cta a,
  .sl-cta a {
    transition: none;
  }

  .press-button:hover,
  .press-button:focus-visible {
    animation: none;
  }

  .corporate-contact .cp-form-submit:hover,
  .corporate-contact .cp-form-submit:focus-visible,
  .job-quick-entry .quick-entry-form .wpcf7-submit:hover,
  .job-quick-entry .quick-entry-form .wpcf7-submit:focus-visible {
    animation: none;
  }

  .hero-image-cta:hover::before,
  .hero-image-cta:focus-visible::before,
  .st-cta a:hover::before,
  .st-cta a:focus-visible::before,
  .sl-cta a:hover::before,
  .sl-cta a:focus-visible::before {
    animation: none;
  }
}
