:root {
  --yaoya-thumbnail-ratio: 16 / 9;
  --yaoya-thumbnail-radius: 8px;
}

section._c430 .frame { border-radius: 16px; }

/* Keep section spacing when the gallery precedes the welcome message. */
@media (min-width: 541px) {
  ._c232 > .yaoya-slider-top { margin-top: 152px; }
  ._c232 > ._c244 { padding-top: 96px !important; }
}

.yaoya-welcome-heading-block {
  width: 100%;
  max-width: 100%;
  align-items: flex-start;
}

.yaoya-section-placeholder {
  aspect-ratio: var(--yaoya-thumbnail-ratio);
  border-radius: var(--yaoya-thumbnail-radius);
  background: #d9d9d9;
}

#official-contents li[hidden] {
  display: none !important;
}

@media (max-width: 540px) {
  ._c232 > .yaoya-slider-top { margin-top: 96px; }
  html.yaoya-recruit-home {
    background-color: var(--yaoya-brand-blue, #360e96) !important;
    overscroll-behavior-y: none;
  }

  .yaoya-recruit-home header._c38.header--at-top {
    transform: none;
    transition: none;
  }

  :root {
    --yaoya-body-font: var(--s-font-6e850693), sans-serif;
    --yaoya-body-size: 14px;
    --yaoya-body-weight: 500;
    --yaoya-body-leading: 1.8;
    --yaoya-body-tracking: .05em;
    --yaoya-heading-size: 28px;
    --yaoya-intro-gutter: 24px;
  }

  ._c232 > ._c244 {
    box-sizing: border-box;
    width: 100% !important;
    padding: 88px var(--yaoya-intro-gutter) 20px !important;
  }

  ._c244 ._c233,
  ._c244 ._c125,
  ._c244 ._c126 {
    max-width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    align-items: flex-start !important;
  }

  ._c244 ._c125 h1 {
    margin-inline: 0 !important;
    padding-inline: 0 !important;
  }

  ._c244 ._c126 {
    flex-flow: column nowrap !important;
    gap: 0 !important;
  }

  ._c244 ._c126 p {
    width: auto !important;
    font-size: clamp(10px, 3.125vw, 12px) !important;
    white-space: nowrap;
  }

  ._c232 > ._c128 {
    box-sizing: border-box;
    width: calc(100% - 2 * var(--yaoya-intro-gutter)) !important;
    margin-inline: var(--yaoya-intro-gutter) !important;
  }

  ._c232 > ._c128,
  ._c133 > p._c292,
  #job p._c296,
  #job ._c255 > p,
  #job ._c461 > p {
    font-family: var(--yaoya-body-font) !important;
    font-size: var(--yaoya-body-size) !important;
    font-weight: var(--yaoya-body-weight) !important;
    line-height: var(--yaoya-body-leading) !important;
    letter-spacing: var(--yaoya-body-tracking) !important;
    font-feature-settings: 'palt' 1;
  }

  .yaoya-welcome-character {
    display: none;
  }

  #job ._c255 > .yaoya-newgrad-frame,
  #job ._c461 > img._c300 {
    display: block;
    width: 100% !important;
    height: auto !important;
    margin: 24px 0 !important;
  }

  section._c409 img._c131,
  section._c412 img._c143,
  section._c428 img._c170,
  img._c269,
  #introduction .yaoya-intro-frame,
  #job .yaoya-newgrad-frame,
  #job img.yaoya-casual-mirrored {
    aspect-ratio: var(--yaoya-thumbnail-ratio) !important;
    border-radius: var(--yaoya-thumbnail-radius) !important;
    height: auto !important;
    object-fit: cover;
  }

  section._c417 ._c419,
  #official-contents ._c246 {
    aspect-ratio: var(--yaoya-thumbnail-ratio);
    border-radius: var(--yaoya-thumbnail-radius);
    overflow: hidden;
  }

  section._c417 ._c419 img,
  #official-contents ._c246 img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: var(--yaoya-thumbnail-ratio);
    border-radius: inherit;
    object-fit: cover;
  }

  section._c417 ._c419 img.yaoya-member-close-crop {
    transform: scale(1.05);
    transform-origin: center 35%;
  }

  #sd-modal-fb44686d54801b94 ._c54 {
    box-sizing: border-box;
    height: 100dvh;
    max-height: 100dvh;
    padding: calc(112px + env(safe-area-inset-top, 0px)) 24px 32px;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    justify-content: flex-start;
  }

  #sd-modal-fb44686d54801b94 ._c50 {
    row-gap: 8px;
  }

  #sd-modal-fb44686d54801b94 ._c50 > li > a > p,
  #sd-modal-fb44686d54801b94 ._c50 > sd-toggle > button > p,
  #sd-modal-fb44686d54801b94 ._c50 > .yaoya-shell-toggle > button > p {
    font-family: Montserrat, "あおとゴシック DB", sans-serif !important;
    font-weight: 700 !important;
  }

  #sd-modal-fb44686d54801b94 :is(._c61, ._c75, ._c89) a {
    justify-content: flex-start;
    width: 100%;
    min-height: 44px;
    text-align: left;
  }

  #sd-modal-fb44686d54801b94 ._c58 {
    flex: none;
  }
}
.yaoya-thumbnail-link {
  display: block;
  width: 100%;
  flex-shrink: 0;
  line-height: 0;
}

.yaoya-thumbnail-link:focus-visible {
  outline: 2px solid var(--yaoya-brand-blue, #360e96);
  outline-offset: 4px;
}

.yaoya-thumbnail-link--fill {
  position: absolute;
  inset: 0;
  height: 100%;
}

@media (min-width: 541px) {
  .yaoya-thumbnail-link--split { width: 52%; }
  .yaoya-thumbnail-link--split img { width: 100%; max-width: 100%; }
}

/* Show the first four members; additional cards are revealed on request. */
section._c417 .yaoya-member-more {
  display: inline-block;
  align-self: flex-end;
  margin-top: 32px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: #360e96;
  font: 400 16px/1.5 Montserrat, "あおとゴシック R", sans-serif;
  cursor: pointer;
}
section._c417 ._c153[hidden] { display: none !important; }
section._c417 .yaoya-member-more:not(:disabled):hover { color: #250965; text-decoration: underline; text-underline-offset: 4px; }
section._c417 .yaoya-member-more:disabled { opacity: 1; cursor: default; }
section._c417 .yaoya-member-more:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

#job .yaoya-intern-pending,
#job .yaoya-intern-pending:hover {
  opacity: .45;
  filter: grayscale(1);
  cursor: not-allowed;
  pointer-events: none;
}

/* Match the modal wordmark spacing to the closed header. */
#sd-modal-fb44686d54801b94 ._c231 { margin-left: -4px !important; }

/* Menu icons share the footer page-top button's rounded square and rounded strokes. */
.yaoya-menu-control {
  position: relative;
  width: 48px !important;
  height: 48px !important;
  border: 0;
  border-radius: 12px;
  background: #250965 !important;
  cursor: pointer;
}
.yaoya-menu-control:hover { background: #1a064b !important; }
.yaoya-menu-control:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.yaoya-menu-open-button > div,
.yaoya-menu-open-button::before {
  position: absolute !important;
  left: 15px !important;
  width: 18px !important;
  height: 2px !important;
  margin: 0 !important;
  border-radius: 999px !important;
  background: #fff !important;
  transform: none !important;
}
.yaoya-menu-open-button > div:first-child { top: 16px !important; }
.yaoya-menu-open-button > div:last-child { top: 30px !important; }
.yaoya-menu-open-button::before { content: ""; top: 23px !important; }

.yaoya-rounded-icon-button > div { display: none !important; }
.yaoya-rounded-icon-button::before,
.yaoya-rounded-icon-button::after {
  content: "";
  position: absolute;
  top: 23px;
  left: 15px;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
}
.yaoya-rounded-icon-button::before { transform: rotate(45deg); }
.yaoya-rounded-icon-button::after { transform: rotate(-45deg); }

.yaoya-menu-footer { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 32px; color: #777; font-size: 11px; line-height: 1.5; }
.yaoya-menu-footer p { margin: 12px 0 0; }

#sd-modal-fb44686d54801b94 a._c101 {
  border: 0 !important;
  border-radius: 10px !important;
  overflow: hidden;
}
#sd-modal-fb44686d54801b94 a._c101 ._c103 { background: #f07800 !important; }
#sd-modal-fb44686d54801b94 a._c101:hover ._c103 { background: #db6800 !important; }
#sd-modal-fb44686d54801b94 a._c101 ._c102 {
  color: #fff !important;
  font-family: Montserrat, "あおとゴシック DB", sans-serif !important;
  font-weight: 700 !important;
}

#sd-modal-fb44686d54801b94 .yaoya-menu-benefits-link,
#sd-modal-fb44686d54801b94 .yaoya-menu-official-link,
#sd-modal-fb44686d54801b94 .yaoya-menu-recruit-link,
#sd-modal-fb44686d54801b94 .yaoya-menu-recruit-link .text {
  color: #333 !important;
}
#sd-modal-fb44686d54801b94 .yaoya-menu-benefits-link:hover,
#sd-modal-fb44686d54801b94 .yaoya-menu-official-link:hover,
#sd-modal-fb44686d54801b94 .yaoya-menu-recruit-link:hover .text { color: #360e96 !important; }
#sd-modal-fb44686d54801b94 .yaoya-recruit-toggle .yaoya-nav-disabled {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  min-height: 44px;
}
#intern { scroll-margin-top: 96px; }
