@layer site-typography {
  .page_staff-detail .staff-day > h2 > small {
    margin-top: 8px;
  }
  .staff-day__photos:has(> img:nth-child(3):last-child) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .page_recruit .rc-interview-after {
    position: relative;
    display: flex;
    justify-content: center;
    padding-top: 240px;
  }
  .page_recruit .rc-interview-after .character-block--interview {
    position: absolute;
    inset: 20px 0 auto auto;
    width: 280px;
    height: 200px;
    margin: 0;
  }
  .page_recruit .rc-interview-after .character-block--interview > img {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 160px;
    max-width: 100%;
    height: auto;
  }
  .page_recruit .rc-interview-after .flow-bubble {
    inset: 0 auto auto 0;
    font-size: 14px;
    padding: 8px;
    width: 140px;
    height: 140px;
  }
  .page_recruit .rc-interview-after .rc-more-link {
    margin: 0;
  }
  .page_recruit .rc-paper,
  .page_recruit .rc-paper * {
    font-family: "M PLUS Rounded 1c", sans-serif;
  }
  .page_recruit .rc-paper__editorial h4 {
    color: #009652;
    border: 5px double;
    padding: 5px 2em;
    width: fit-content;
  }
  .page_recruit .rc-paper__essay-more {
    margin-top: 20px;
  }
  .page_recruit .rc-paper__essay-more summary {
    cursor: pointer;
    color: #009652;
    font-weight: 700;
    width: fit-content;
    padding: 8px 0;
  }
  .page_recruit .rc-paper__essay-more p {
    font-size: 14px;
    line-height: 1.9;
  }
  .page_recruit .rc-paper__mascot {
    grid-template-columns: minmax(0, 175px) 140px;
  }
  .page_recruit .rc-paper__mascot > .speech-cast-image {
    width: 175px;
    animation: none;
  }
  .page_family .rf-dorm__gallery {
    position: relative;
  }
  .page_family .rf-dorm__arrow {
    position: absolute;
    z-index: 3;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #41418d;
    border-radius: 50%;
    background: #fff;
    color: #41418d;
    cursor: pointer;
    box-shadow: 0 2px 8px #0002;
  }
  .page_family .rf-dorm__arrow--prev {
    left: 12px;
  }
  .page_family .rf-dorm__arrow--next {
    right: 12px;
  }
  @media (max-width: 640px) {
    .page_recruit .rc-paper__mascot {
      grid-template-columns: minmax(0, 150px) 120px;
    }
    .page_recruit .rc-paper__mascot > .speech-cast-image {
      width: 150px;
    }
    .staff-day__photos:has(> img:nth-child(3):last-child) {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .staff-day__photos:has(> img:nth-child(3):last-child) > img:last-child {
      grid-column: 1 / -1;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    .page_recruit .rc-paper__mascot > .speech-cast-image {
      animation: none;
    }
  }
}
@keyframes newsletter-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@layer site-typography {
  .page_recruit .rc-paper__event--sports .rc-paper__mascot > img {
    animation: none;
  }
  @media (prefers-reduced-motion: no-preference) {
    .page_recruit .rc-paper__mascot.is-entry-pending > img { visibility: hidden; }
    .page_recruit .rc-paper__event--sports .rc-paper__mascot.is-entry-complete > img {
      animation: rc-seichan-run-in .85s cubic-bezier(.2, .7, .3, 1) both;
    }
  }
  @keyframes rc-seichan-run-in {
    from { transform: translateX(160px); }
    to { transform: translateX(0); }
  }
}
