.hy-search {
  --hy-search-ink: var(--hy-mode-ink, #111111);
  --hy-search-paper: var(--hy-mode-surface, #eeece6);
  --hy-search-muted: color-mix(in srgb, var(--hy-search-ink) 55%, transparent);
  --hy-search-line: color-mix(in srgb, var(--hy-search-ink) 22%, transparent);
  --hy-search-line-soft: color-mix(in srgb, var(--hy-search-ink) 12%, transparent);
  --hy-search-ease: cubic-bezier(0.22, 1, 0.36, 1);
  position: fixed;
  inset: 0;
  z-index: 1000;
  overflow-y: auto;
  overscroll-behavior: contain;
  visibility: hidden;
  pointer-events: none;
  color: var(--hy-search-ink);
  font-family: var(--font-primary, sans-serif);
}

:root[data-hy-mode="neutral"] .hy-search,
:root:not([data-hy-mode]) .hy-search {
  --hy-search-ink: #111111;
  --hy-search-paper: #eeece6;
}

.hy-search.is-open {
  visibility: visible;
  pointer-events: auto;
}

.hy-search-open,
.hy-search-open body {
  overflow: hidden;
}

.admin-bar .hy-search {
  top: var(--wp-admin--admin-bar--height, 32px);
}

.hy-search__backdrop {
  position: fixed;
  inset: 0;
  background: var(--hy-search-paper);
  opacity: var(--hy-curtain-fill-opacity, 0.98);
  transform: translateY(-100%);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.hy-search__curtain {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
  display: none;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  opacity: 1 !important;
  transform: translateY(100%);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.hy-search__curtain .curtain-svg {
  fill-opacity: var(--hy-curtain-fill-opacity, 0.98);
}

.hy-search.has-curtain .hy-search__backdrop {
  display: none;
}

.hy-search__close.hy-menu-toggle {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  height: 88px;
  margin: 0;
  padding: 0 34px;
  border: 0;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  transition: scale 0.2s var(--hy-search-ease);
}

.hy-search__close.hy-menu-toggle::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  background: currentColor;
  opacity: 0.16;
}

.admin-bar .hy-search__close.hy-menu-toggle {
  top: var(--wp-admin--admin-bar--height, 32px);
}

.hy-search__close.hy-menu-toggle:active {
  scale: 0.96;
}

.hy-search__close.hy-menu-toggle:focus-visible .hy-menu-toggle__labels {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 6px;
}

.hy-search__inner {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: calc(88px + 40px) var(--hy-crumb-x, 34px);
}

.hy-search.has-results .hy-search__inner {
  justify-content: flex-start;
  padding-top: calc(88px + clamp(48px, 9vh, 96px));
  padding-bottom: 80px;
}

.hy-search__form {
  position: relative;
  z-index: 1;
}

.hy-search__label {
  display: block;
  overflow: hidden;
  margin: 0 0 28px;
  color: var(--hy-search-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.hy-search__reveal {
  display: inline-block;
}

.hy-search__field {
  position: relative;
  overflow: hidden;
  padding-bottom: 0.12em;
  font-family: "HIGASHIYUKI Font1", var(--font-primary, sans-serif);
  font-size: clamp(32px, 5.2vw, 72px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.hy-search__input,
.hy-search__ghost {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 0 clamp(64px, 8vw, 96px) 0.08em 0;
  border: 0;
  font: inherit;
  letter-spacing: inherit;
  white-space: pre;
}

.hy-search__input {
  position: relative;
  display: block;
  height: auto;
  background: transparent;
  color: var(--hy-search-ink);
  caret-color: currentColor;
  border-radius: 0;
  box-shadow: none;
  appearance: none;
}

.hy-search__input::-webkit-search-cancel-button {
  appearance: none;
}

.hy-search__input::placeholder {
  color: color-mix(in srgb, var(--hy-search-ink) 28%, transparent);
  opacity: 1;
}

.hy-search__input:focus {
  outline: none;
  border: 0;
  box-shadow: none;
}

.hy-search__ghost {
  position: absolute;
  inset: 0 0 auto;
  overflow: hidden;
  pointer-events: none;
}

.hy-search__ghost-typed {
  color: transparent;
}

.hy-search__ghost-rest {
  color: color-mix(in srgb, var(--hy-search-ink) 32%, transparent);
}

.hy-search__submit {
  position: absolute;
  right: 0;
  bottom: 0.3em;
  display: grid;
  place-items: center;
  width: clamp(48px, 5vw, 64px);
  height: clamp(48px, 5vw, 64px);
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--hy-search-line);
  color: var(--hy-search-ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  scale: 0.6;
  opacity: 0;
  pointer-events: none;
  transition: scale 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s var(--hy-search-ease), background-color 0.4s var(--hy-search-ease), color 0.4s var(--hy-search-ease), box-shadow 0.4s var(--hy-search-ease);
}

.hy-search__field:has(.hy-search__input:not(:placeholder-shown)) .hy-search__submit {
  scale: 1;
  opacity: 1;
  pointer-events: auto;
}

.hy-search__submit:hover,
.hy-search__submit:focus-visible {
  background: var(--hy-search-ink);
  color: var(--hy-search-paper);
  box-shadow: inset 0 0 0 1px var(--hy-search-ink);
}

.hy-search__submit:focus-visible {
  outline: 1px solid var(--hy-search-ink);
  outline-offset: 4px;
}

.hy-search__submit:active {
  scale: 0.9;
}

.hy-search__submit-arrow {
  transition: translate 0.5s var(--hy-search-ease);
}

.hy-search__submit:hover .hy-search__submit-arrow {
  translate: 3px 0;
}

.hy-search__rule {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--hy-search-line);
  transform-origin: left;
  transition: background-color 0.5s var(--hy-search-ease), height 0.4s var(--hy-search-ease);
}

.hy-search__field:focus-within .hy-search__rule {
  height: 2px;
  background: var(--hy-search-ink);
}

.hy-search__hint {
  display: grid;
  grid-template-rows: 0fr;
  margin: 0;
  color: var(--hy-search-muted);
  font-size: 13px;
  letter-spacing: 0.02em;
  transition: grid-template-rows 0.5s var(--hy-search-ease), margin 0.5s var(--hy-search-ease);
}

.hy-search__hint.is-shown {
  grid-template-rows: 1fr;
  margin-top: 24px;
}

.hy-search__keys {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  min-height: 0;
  overflow: hidden;
}

.hy-search__key {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  translate: 0 12px;
  transition: opacity 0.3s var(--hy-search-ease), translate 0.4s var(--hy-search-ease);
}

.hy-search__hint.is-shown .hy-search__key {
  opacity: 1;
  translate: 0 0;
  transition-duration: 0.5s, 0.7s;
}

.hy-search__hint.is-shown .hy-search__key:nth-child(2) {
  transition-delay: 0.06s;
}

.hy-search__hint.is-shown .hy-search__key:nth-child(3) {
  transition-delay: 0.12s;
}

.hy-search__hint.is-shown .hy-search__key:nth-child(4) {
  transition-delay: 0.18s;
}

.hy-search__key kbd {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 6px;
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--hy-search-line);
  color: var(--hy-search-ink);
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  transition: scale 0.5s var(--hy-search-ease);
}

.hy-search__hint:not(.is-shown) .hy-search__key kbd {
  scale: 0.8;
}

.hy-search__results {
  position: relative;
  z-index: 1;
  margin-top: 28px;
}

.hy-search.has-results .hy-search__results {
  margin-top: clamp(48px, 8vh, 96px);
}

.hy-search__status {
  min-height: 1.5em;
  margin: 0 0 12px;
  color: var(--hy-search-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.hy-search__list {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hy-search-result {
  position: relative;
  margin: 0;
  border-bottom: 1px solid rgba(128, 128, 128, 0.3);
}

.hy-search-result__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4rem;
  padding: 36px 0;
  color: inherit;
  text-decoration: none;
}

.hy-search-result:first-child .hy-search-result__link {
  padding-top: 20px;
}

.hy-search-result__link:hover,
.hy-search-result__link:focus-visible {
  color: inherit;
}

.hy-search-result__link:focus-visible {
  outline: none;
}

.hy-search-result__cover {
  position: relative;
  flex: 0 0 clamp(120px, 14vw, 220px);
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--hy-search-line-soft);
}

.hy-search-result__cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 0.9s var(--hy-search-ease);
}

.hy-search-result__link:hover .hy-search-result__cover img,
.hy-search-result__link:focus-visible .hy-search-result__cover img {
  scale: 1.06;
}

.hy-search-result__initial {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--hy-search-muted);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 600;
}

.hy-search-result__body {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  transition: translate 0.6s var(--hy-search-ease);
}

.hy-search-result__link:hover .hy-search-result__body,
.hy-search-result__link:focus-visible .hy-search-result__body {
  translate: 8px 0;
}

.hy-search-result__type.subheading {
  display: block;
  margin: 0 0 12px;
  color: var(--hy-search-muted);
  font-size: 12.1px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hy-search-result__title {
  display: block;
  font-size: clamp(20px, 2vw, 32px);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: normal;
}

.hy-search-result__title mark {
  padding: 0;
  background: none;
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
}

.hy-search-result__button.button.button_bordered {
  flex: 0 0 auto;
  margin: 0;
  border-color: currentColor;
  color: inherit;
}

.hy-search__all {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  padding-bottom: 4px;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  color: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background-size 0.6s var(--hy-search-ease);
}

.hy-search__all:hover {
  color: inherit;
  background-size: 0 1px;
  background-position: right bottom;
}

.hy-search__all-arrow {
  transition: translate 0.5s var(--hy-search-ease);
}

.hy-search__all:hover .hy-search__all-arrow {
  translate: 6px 0;
}

.hy-search__all[hidden] {
  display: none;
}

@media (max-width: 991px) {
  .hy-search__close.hy-menu-toggle {
    height: 72px;
  }

  .hy-search__inner {
    padding-top: calc(72px + 32px);
  }

  .hy-search.has-results .hy-search__inner {
    padding-top: calc(72px + 48px);
  }
}

@media (max-width: 767px) {
  .hy-search__close.hy-menu-toggle {
    height: 60px;
    padding-inline: 14px;
  }

  .hy-search__close .hy-menu-toggle__labels {
    display: none;
  }

  .hy-search__inner {
    padding-top: calc(60px + 24px);
  }

  .hy-search.has-results .hy-search__inner {
    padding-top: calc(60px + 32px);
  }

  .hy-search__hint .hy-search__key:nth-child(-n + 2) {
    display: none;
  }

  .hy-search-result__link {
    gap: 20px;
    padding: 24px 0;
  }

  .hy-search-result__cover {
    flex-basis: 96px;
  }

  .hy-search-result__type.subheading {
    margin-bottom: 8px;
    font-size: 11px;
    letter-spacing: 1.5px;
  }

  .hy-search-result__button.button.button_bordered {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hy-search__close,
  .hy-search__rule,
  .hy-search__hint,
  .hy-search__key,
  .hy-search__key kbd,
  .hy-search__submit,
  .hy-search__submit-arrow,
  .hy-search-result__cover img,
  .hy-search-result__body,
  .hy-search__all,
  .hy-search__all-arrow {
    transition: none;
  }
}

@media (max-width: 1199px) {
  .hy-search__close.hy-menu-toggle {
    padding-inline: 24px;
  }
}

@media (max-width: 420px) {
  .hy-search__close.hy-menu-toggle {
    padding-inline: 10px;
  }
}

.hy-search-page,
.hy-search-page__masthead {
  --hy-search-ink: currentColor;
  --hy-search-muted: color-mix(in srgb, currentColor 55%, transparent);
  --hy-search-line: color-mix(in srgb, currentColor 22%, transparent);
  --hy-search-line-soft: color-mix(in srgb, currentColor 10%, transparent);
  --hy-search-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.hy-search-page__summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 4rem;
  margin-top: 32px;
}

.hy-search-page__again.button.button_bordered {
  margin: 0;
  border-color: currentColor;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.hy-search-page__list {
  border-top: 1px solid rgba(128, 128, 128, 0.3);
}

.hy-search-page__list .hy-search-result:first-child .hy-search-result__link {
  padding-top: 36px;
}

.hy-search-page__pagination {
  margin-top: 64px;
}

@media (max-width: 767px) {
  .hy-search-page__list .hy-search-result:first-child .hy-search-result__link {
    padding-top: 24px;
  }
}

#page-wrapper .hy-search-page .hy-search-result__link,
#page-wrapper .hy-search-page .hy-search-result__link:hover {
  color: var(--h3-color-dark, #333333);
}

#page-wrapper[data-arts-theme-text="light"] .hy-search-page .hy-search-result__link,
#page-wrapper[data-arts-theme-text="light"] .hy-search-page .hy-search-result__link:hover,
.arts-elementor-theme-light .hy-search-page .hy-search-result__link {
  color: var(--h3-color-light, #eeece6);
}
