/* September 2026 recruitment update. Loaded after the original site styles. */
:root {
  --recruit-green: #109b7c;
  --recruit-red: #e63e35;
}
.teaser1,
.teaser2,
.teaser3,
.teaser4,
.teaser5,
.teaser6,
.teaser7,
.teaser_spe {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.57), rgba(0, 0, 0, 0.57)),
    url("../images/stories/sky.webp");
  background-size: cover;
  background-position: center;
}
.story-banner {
  padding: 74px 20px 70px;
}
.story-banner h2,
.story-banner .story-banner-heading {
  margin-top: 0;
  min-width: 430px;
}
.story-collection {
  max-width: 1225px;
  margin: auto;
  padding: 20px 44px 120px;
  /* Cards waiting to slide in sit 30px off to the side; don't let that widen the page on phones. */
  overflow-x: clip;
}
#story-list .story-collection {
  max-width: none;
  background: #edeeef;
  padding-top: 80px;
  padding-bottom: 150px;
}
.story-group {
  max-width: 1137px;
  margin: 0 auto 140px;
}
.story-group:last-child {
  margin-bottom: 0;
}
.story-heading {
  margin: 0;
  text-align: center;
  color: var(--recruit-green);
  font:
    800 52px/1.2 Montserrat,
    sans-serif;
}
.story-heading span {
  color: var(--recruit-red);
}
.story-subheading {
  margin: 8px 0 46px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: #111;
}
.story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 110px 18px;
}
.story-card {
  position: relative;
  display: block;
  margin-bottom: 45px;
  color: #fff;
}
.story-card::after {
  display: none;
}
.story-photo {
  position: relative;
  aspect-ratio: 1.843;
  overflow: hidden;
}
.story-photo > img {
  display: block;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
}
.story-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(0, 0, 0, 0.36), transparent 65%);
  pointer-events: none;
}
.story-caption {
  position: absolute;
  left: 14px;
  bottom: -62px;
  z-index: 1;
}
.story-number {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  line-height: 1;
  margin: 0 0 12px;
}
.story-number span {
  font-size: 22px;
  line-height: 1.05;
}
.story-number b {
  border-left: 1px solid #fff;
  padding-left: 12px;
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
}
.story-title {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 5px;
  margin: 0;
  font-size: 24px;
  line-height: 1.5;
  color: white;
  font-weight: 700;
}
.story-title > span {
  background: #000;
  padding: 1px 9px 3px;
}
.story-card .story-photo img {
  transition: transform 0.35s;
}
.story-card:hover .story-photo img {
  transform: scale(1.025);
}
.story-card:focus-visible {
  outline: 3px solid var(--recruit-green);
  outline-offset: 8px;
}
.story-article {
  max-width: 1225px;
  padding: 70px 35px 0;
  margin: auto;
  color: #111;
}
.story-hero {
  position: relative;
  margin-bottom: 65px;
}
.story-hero .story-caption {
  left: 35px;
  bottom: 45px;
}
.story-hero .story-number span {
  font-size: 32px;
}
.story-hero .story-number b {
  font-size: 82px;
}
.story-hero .story-title {
  font-size: 34px;
}
.story-intro {
  max-width: 800px;
  margin: auto auto 95px;
}
.facility-logo {
  display: block;
  width: auto;
  max-width: 310px;
  height: auto;
  max-height: 110px;
  margin: 0 auto 45px;
}
.story-intro > p {
  padding: 24px 40px;
  background: #fff3f3;
}
.story-profile,
.story-advice {
  max-width: 800px;
  margin: 0 auto 75px;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.portrait {
  width: 180px;
  height: 180px !important;
  border-radius: 50%;
  object-fit: cover;
}
.story-eyebrow {
  color: var(--recruit-green);
  font:
    700 15px/1.4 Montserrat,
    sans-serif;
  letter-spacing: 1px;
  margin: 0 0 12px;
}
.story-eyebrow span {
  color: var(--recruit-red);
}
.member-name {
  padding-bottom: 14px;
  border-bottom: 1px solid #888;
  margin-bottom: 15px;
}
.member-name strong {
  font-size: 18px;
}

/* Progressive enhancement: content stays visible without JavaScript. */
.story-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
}
.story-reveal.story-reveal-right {
  transform: translateX(30px);
  transition-duration: 1s;
  transition-timing-function: ease;
}
.story-reveal.story-reveal-left {
  transform: translateX(-30px);
  transition-duration: 1s;
  transition-timing-function: ease;
}
.story-reveal.is-revealed {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .story-reveal,
  .story-reveal.story-reveal-right,
  .story-reveal.story-reveal-left {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
@media print {
  .story-reveal,
  .story-reveal.story-reveal-right,
  .story-reveal.story-reveal-left {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
.story-interview {
  display: grid;
  grid-template-columns: repeat(20, minmax(0, 1fr));
  align-items: center;
  margin: 0 0 100px;
  min-height: 0;
  position: relative;
}
.story-interview .leftimg {
  position: relative;
  grid-column: 1 / 12;
  grid-row: 1;
  top: auto;
  left: auto;
  right: auto;
  z-index: 0;
  aspect-ratio: 1.57;
}
.story-interview .leftimg > img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  display: block;
}
.story-interview .leftimg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 70%, #fff);
  pointer-events: none;
}
.story-interview .right_tx {
  grid-column: 10 / -1;
  grid-row: 1;
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  width: auto;
  padding: 28px;
  border: 5px solid #000;
  z-index: 1;
  background: rgba(255, 255, 255, 0.78);
}
.story-interview .right_tx h2 {
  font-size: 26px;
  line-height: 1.5;
  margin: 0 0 20px;
}
.story-interview .right_tx p {
  margin: 0;
}
.story-interview.staff_mes2 .leftimg {
  grid-column: 10 / -1;
}
.story-interview.staff_mes2 .right_tx {
  grid-column: 1 / 12;
}
.story-interview.staff_mes2 .leftimg::after {
  background: linear-gradient(270deg, transparent 70%, #fff);
}
.story-interview .leftimg .product-inset {
  position: absolute;
  top: 5%;
  left: 4%;
  width: 34%;
  height: auto !important;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 4px solid #fff;
}
.career-insets {
  position: absolute;
  inset: 0 auto 0 0;
  width: 31%;
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
}
.career-insets img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  min-height: 0;
}
.career-person {
  text-align: center;
}
.career-person h2 {
  font-size: 20px;
  margin: 20px 0;
}
.career-person p {
  line-height: 1.5;
}
.career-profile .story-eyebrow span {
  color: var(--recruit-green);
}
.career-path {
  padding: 0;
  list-style: none;
  margin: 0;
}
.career-path li {
  position: relative;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 18px;
  padding: 0 0 18px 14px;
  border-left: 1px solid var(--recruit-green);
}
.career-path li:last-child {
  padding-bottom: 0;
}
.career-path li::before {
  content: "";
  position: absolute;
  top: 12px;
  left: -5px;
  width: 9px;
  height: 9px;
  background: var(--recruit-red);
  border-radius: 50%;
}
.career-path li > span {
  line-height: 1.8;
  padding-top: 6px;
}
.career-path li p {
  background: #fff3f3;
  padding: 8px 16px;
  position: relative;
}
.career-path li p::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 10px;
  border-width: 7px 16px 7px 0;
  border-style: solid;
  border-color: transparent #fff3f3 transparent transparent;
}
.story-advice {
  margin-top: 150px;
  margin-bottom: 120px;
}
.story-advice > div {
  position: relative;
  background: #e3f1ed;
  border-radius: 22px;
  padding: 28px 40px;
}
.story-advice > div::before {
  content: "";
  position: absolute;
  top: 65px;
  left: -35px;
  border-style: solid;
  border-width: 12px 36px 12px 0;
  border-color: transparent #e3f1ed transparent transparent;
}
.story-return {
  text-align: center;
}
.story-return .button-gr {
  min-width: 315px;
}
/* Exclude this button from the global link underline, preserving its color hover. */
.story-return .button-gr::after {
  content: none;
}
.section-profile {
  display: grid;
  grid-template-columns: 51% minmax(0, 1fr);
  align-items: stretch;
}
.section-profile > img {
  width: 100%;
  height: 0;
  min-height: 100%;
  object-fit: cover;
}
.section-profile-label {
  background: var(--recruit-red);
  color: white;
  padding: 48px 20px;
  flex: 1;
  text-align: left;
  clip-path: polygon(0 0, 94% 0, 100% 18%, 100% 100%, 0 100%);
}
.section-profile-label h2 {
  font:
    700 29px/1.2 Montserrat,
    sans-serif;
  letter-spacing: 1px;
  margin: 0 0 8px;
  white-space: nowrap;
}
.section-profile-label p {
  font-size: 14px;
}
/* Main copy remains fixed while only the photographs animate. */
@media (min-width: 669px) {
  /* Subpage backgrounds extend behind the 48px navigation row. */
  body > header > nav {
    margin-bottom: 0;
  }
  body > main {
    padding-top: 75px;
  }
  #home .hero-copy {
    padding-top: 48px;
    transform: translateY(50px);
  }
  /* Use one shared header treatment for every lower-level page. */
  .teaser1,
  .teaser2,
  .teaser3,
  .teaser4,
  .teaser5,
  .teaser6,
  .teaser7,
  .story-banner {
    height: 313px;
    padding: 145px 20px 0;
  }
  .teaser1 > :first-child,
  .teaser2 > :first-child,
  .teaser3 > :first-child,
  .teaser4 > :first-child,
  .teaser5 > :first-child,
  .teaser6 > :first-child,
  .teaser7 > :first-child,
  .story-banner > :first-child {
    display: inline-block;
    margin: 0 0 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #fff;
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-size: 32px;
    font-weight: 600;
    letter-spacing: 4px;
    line-height: 1;
  }
}
.hero-slider {
  position: relative;
}
.hero-stage {
  position: relative;
  aspect-ratio: 1.98;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1600ms ease;
}
.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}
.hero-slide.is-leaving {
  opacity: 1;
  z-index: 0;
  transition: none;
}
.hero-slide picture {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-slide img {
  width: 100%;
  height: 100% !important;
  display: block;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.05);
}
.hero-slide.is-active img,
.hero-slide.is-leaving img {
  animation: hero-shrink 4600ms linear forwards;
}
@keyframes hero-shrink {
  from {
    transform: scale(1.05);
  }
  to {
    transform: scale(1);
  }
}
.hero-stage::after {
  z-index: 2;
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.19);
  pointer-events: none;
}
.hero-copy {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  pointer-events: none;
}
.hero-copy img {
  width: 52%;
  max-width: 760px;
  height: auto;
}
.hero-copy-image {
  display: block;
  width: 55%;
  max-width: 800px;
}
.hero-copy-image img {
  width: 100%;
  height: auto;
  display: block;
}
.hero-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 0;
  min-height: 52px;
}
.hero-controls[hidden] {
  display: none;
}
.hero-dot {
  border: 0;
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  background: #d0d0d0;
  cursor: pointer;
}
.hero-dot[aria-current="true"] {
  background: var(--recruit-red);
}
.hero-controls button:focus-visible {
  outline: 2px solid var(--recruit-green);
  outline-offset: 4px;
}
@media (min-width: 669px) and (max-width: 1240px) {
  .story-collection,
  .story-article {
    width: 1200px;
  }
}
@media (max-width: 668px) {
  #story main {
    padding-top: 50px;
    padding-bottom: 0;
  }
  .page-main {
    padding-top: 50px;
  }
  /* Shared mobile title banner, based on the top-message page. */
  .page-main > .page-banner {
    box-sizing: border-box;
    width: 100%;
    height: 157px;
    min-height: 157px;
    margin: 0;
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    text-align: center;
    background-size: cover;
    background-position: center;
  }
  .page-main > .page-banner > :first-child {
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    font:
      700 clamp(22px, 6.45vw, 32px)/1 "Lato",
      sans-serif;
    letter-spacing: 0;
  }
  .page-main > .page-banner > p:last-child {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 12.8px;
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: 0;
  }
  .story-collection,
  #story-list .story-collection {
    padding: 55px 20px 80px;
  }
  .story-group {
    margin-bottom: 80px;
  }
  .story-heading {
    font-size: clamp(24px, 7vw, 36px);
  }
  .story-subheading {
    font-size: 14px;
    margin-bottom: 30px;
  }
  .story-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 65px;
  }
  .story-caption {
    left: 12px;
    bottom: -45px;
  }
  .story-number {
    gap: 10px;
    margin-bottom: 8px;
  }
  .story-number span {
    font-size: clamp(15px, 4.8vw, 24px);
  }
  .story-number b {
    font-size: clamp(42px, 12vw, 60px);
    padding-left: 10px;
  }
  .story-title {
    font-size: clamp(15px, 4.4vw, 26px);
    gap: 3px;
  }
  .story-title > span {
    padding: 2px 6px;
  }
  .story-card {
    margin-bottom: 12px;
  }
  .story-article {
    padding: 35px 20px 32px;
  }
  .story-hero {
    margin-bottom: 110px;
  }
  .story-hero .story-caption {
    bottom: -45px;
    left: 12px;
  }
  .story-hero .story-number span {
    font-size: clamp(15px, 4.8vw, 24px);
  }
  .story-hero .story-number b {
    font-size: clamp(42px, 12vw, 60px);
  }
  .story-hero .story-title {
    font-size: clamp(15px, 4.4vw, 26px);
  }
  .story-intro {
    margin-bottom: 45px;
  }
  .facility-logo {
    max-width: 220px;
    max-height: 80px;
    margin-bottom: 28px;
  }
  .facility-logo[src$="/littleworld.png"] {
    width: 55vw;
    max-height: none;
    margin-bottom: 40px;
  }
  .facility-logo[src$="/meijimura.png"] {
    width: 50vw;
    max-height: none;
    margin-bottom: 40px;
  }
  .facility-logo[src$="/monkeypark.png"] {
    width: 60vw;
    max-height: none;
    margin-bottom: 40px;
  }
  .story-intro > p {
    padding: 20px;
  }
  .story-article p {
    font-size: 3.5vw;
    line-height: 1.9;
  }
  .story-profile,
  .story-advice {
    grid-template-columns: 85px minmax(0, 1fr);
    gap: 18px;
    margin-bottom: 50px;
  }
  .story-profile .portrait,
  .story-advice .portrait {
    width: 85px;
    height: 85px !important;
  }
  .story-eyebrow {
    font-size: 4.5vw;
  }
  .member-name strong {
    display: block;
    font-size: 5vw;
  }
  .member-name .member-separator {
    display: none;
  }
  .story-article .member-name {
    display: flex;
    flex-direction: column;
    font-size: 3.5vw;
    line-height: 1.7;
  }
  .story-profile:not(.career-profile) {
    display: block;
  }
  .story-profile:not(.career-profile) .portrait {
    display: block;
    margin: 0 auto 24px;
    width: 60vw;
    height: 60vw !important;
  }
  .career-profile {
    grid-template-columns: 1fr;
  }
  .career-person .portrait {
    display: block;
    margin: 0 auto 24px;
    width: 60vw;
    height: 60vw !important;
  }
  .career-person h2 {
    margin: 12px 0;
  }
  .career-path li {
    grid-template-columns: 75px minmax(0, 1fr);
    gap: 12px;
  }
  .career-path li > span {
    font-size: 14px;
  }
  .career-path li p {
    font-size: 3.5vw;
    padding: 8px 12px;
  }
  .story-interview {
    display: flex;
    flex-direction: column;
    margin-bottom: 50px;
  }
  .story-interview .leftimg {
    width: 100%;
  }
  .story-interview .right_tx {
    width: calc(100% - 12px);
    margin: -16px auto 0;
    padding: 22px 18px;
    border-width: 3px;
    background: rgba(255, 255, 255, 0.95);
  }
  .story-interview.staff_mes2 .right_tx {
    margin-left: auto;
    margin-right: auto;
  }
  .story-article .story-interview .right_tx {
    width: 100%;
    margin: 24px auto 0;
    padding: 0;
    border: 0;
    background: transparent;
  }
  .story-interview .right_tx h2 {
    font-size: 21px;
    margin-bottom: 15px;
  }
  .story-interview .leftimg::after,
  .story-interview.staff_mes2 .leftimg::after {
    background: linear-gradient(transparent 75%, rgba(255, 255, 255, 0.5));
  }
  .story-advice {
    margin-top: 70px;
  }
  .story-advice > div {
    padding: 22px 18px;
    border-radius: 15px;
  }
  .story-advice > div::before {
    top: 35px;
    left: -17px;
    border-width: 7px 18px 7px 0;
  }
  .story-return .button-gr {
    min-width: 0;
    width: 100%;
  }
  .section3 .section-profile {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
  }
  .section-profile > img {
    width: 100%;
    height: auto;
    min-height: 0;
  }
  .section-profile-label {
    box-sizing: border-box;
    width: var(--home-panel-width);
    aspect-ratio: 398 / 186;
    flex: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 7%;
    align-self: center;
    margin: calc(var(--home-panel-width) * -0.2) auto 0;
  }
  .section-profile-label h2 {
    font-family: "Lato", sans-serif;
    font-size: clamp(18px, 5.4vw, 28.6px);
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.2;
  }
  .section-profile-label p {
    font-size: clamp(11px, 2.8vw, 14.8px);
    font-weight: 700;
    letter-spacing: 1px;
  }
  .section-profile .sec3_btn {
    right: calc((100% - var(--home-panel-width)) / 2 + 20px);
    bottom: -15px;
  }
  .hero-stage {
    aspect-ratio: 7 / 8;
  }
  #home main {
    padding-top: 50px;
    padding-bottom: 0;
  }
  .hero-copy {
    inset: 60% 0 auto;
    padding-top: 0;
    transform: translateY(-50%);
  }
  .hero-copy img {
    width: 77.4%;
  }
  .hero-copy-image {
    width: 86%;
    max-width: none;
  }
  .hero-copy-image img {
    width: 100%;
  }
  .hero-controls {
    padding: 16px 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  #home .wow {
    visibility: visible !important;
    animation: none !important;
    transform: none !important;
  }
  .hero-slide {
    transition: none;
  }
  .hero-slide.is-active img,
  .hero-slide.is-leaving img {
    animation: none;
    transform: none;
  }
  .story-card .story-photo img {
    transition: none;
  }
}

/* Accessibility (WCAG 2.1/2.2 AA) enhancements */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 10000;
  padding: 12px 24px;
  background: #111;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  text-decoration: underline;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: top 0.2s ease-in-out;
}
.skip-link:focus {
  top: 0;
  outline: 3px solid var(--recruit-green);
  outline-offset: 2px;
}

/* Focus visibility for interactive elements */
a:focus-visible,
button:focus-visible,
.btn1:focus-visible,
.btn2:focus-visible,
.button-gr:focus-visible,
.button-ao:focus-visible,
.button-red:focus-visible,
.button-pk:focus-visible {
  outline: 3px solid var(--recruit-green) !important;
  outline-offset: 3px !important;
}

/* Heading level correction support */
h2.env_sti_L,
h3.env_sti_L {
  font-size: 26px;
  font-weight: bold;
  color: #333;
  margin-bottom: 25px;
  line-height: 1.4;
}
@media (max-width: 668px) {
  h2.env_sti_L,
  h3.env_sti_L {
    font-size: 20px;
    margin-bottom: 15px;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
