#career-links {
  padding-top: 0;
}

.career-rounded-panel {
  width: 100vw;
  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50vw);
  background: var(--soft);
  border-top-right-radius: 80px;
  border-bottom-left-radius: 80px;
}

.career-mv-visual {
  position: relative;
  width: 776px;
  max-width: 100%;
  margin-right: auto;
  margin-left: auto;
}

.career-mv-image {
  width: 100%;
  height: auto;
  border-top-right-radius: 80px;
}

.career-lead {
  width: fit-content;
  max-width: 100%;
  margin: 96px auto 0;
  text-align: left;
}

.career-lead-title {
  margin: 0 0 32px;
  text-align: left;
}

.career-lead-text {
  margin: 0;
}

.career-link-list {
  display: grid;
  grid-template-columns: repeat(3, 384px);
  justify-content: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.career-link-list li {
  position: relative;
  width: 384px;
  height: 386px;
}

.career-link-list li:nth-child(1) {
  background: #163a44;
}

.career-link-list li:nth-child(2) {
  background: #1b2e46;
}

.career-link-list li:nth-child(3) {
  background: #312e3f;
}

.career-link-list a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #fff;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.025em;
}

.career-link-arrow {
  position: absolute;
  left: 50%;
  bottom: 40px;
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 36px;
  height: 36px;
  border: 1px solid #fff;
  border-radius: 50%;
  transform: translateX(-50%);
  transition: transform 0.3s ease;
}

.career-link-arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 10px;
  background: url("../images/common/arrow.svg") center / contain no-repeat;
  transform: translate(-50%, -50%);
}

.career-link-list a:focus-visible .career-link-arrow {
  transform: translateX(-50%) scale(1.12);
}

.career-link-list a:focus-visible .career-link-arrow::before {
  animation: pill-arrow-swap 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) and (pointer: fine) {
  .career-link-list a:hover .career-link-arrow {
    transform: translateX(-50%) scale(1.12);
  }

  .career-link-list a:hover .career-link-arrow::before {
    animation: pill-arrow-swap 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .career-link-arrow {
    transition: none;
  }

  .career-link-list a:focus-visible .career-link-arrow::before {
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) and (hover: hover) and (pointer: fine) {
  .career-link-list a:hover .career-link-arrow::before {
    animation: none;
  }
}

.career-link-list-second {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  margin: 96px 0 0;
  padding: 0;
  list-style: none;
}

.career-link-list-second a {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
}

.career-link-list-second a::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 32px;
  height: 32px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: #fff url("../images/common/arrow_black.svg") center / 11px 9px no-repeat;
  transition: transform 0.3s ease;
}

.career-link-list-second a:focus-visible::after {
  transform: scale(1.12);
  animation: career-link-second-arrow-swap 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) and (pointer: fine) {
  .career-link-list-second a:hover::after {
    transform: scale(1.12);
    animation: career-link-second-arrow-swap 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  }
}

@keyframes career-link-second-arrow-swap {
  0% {
    background-position: center;
  }

  42% {
    background-position: calc(100% + 12px) center;
  }

  43% {
    background-position: -12px center;
  }

  100% {
    background-position: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .career-link-list-second a::after {
    transition: none;
  }

  .career-link-list-second a:focus-visible::after {
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) and (hover: hover) and (pointer: fine) {
  .career-link-list-second a:hover::after {
    animation: none;
  }
}

.career-link-list-second img {
  display: block;
  width: 100%;
  height: auto;
}

.career-link-list-second picture {
  display: block;
}

.career-link-list-second p {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 1;
  margin: 0;
  color: #fff;
  font-family: var(--font-ja);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.025em;
  line-height: 1.5;
}

@media (min-width: 1161px) {
  .career-workstyle {
    padding-top: 0;
  }

  .career-lead-title {
    margin-bottom: 24px;
  }

  .career-link-list-second p {
    top: 16px;
    font-size: 20px;
  }
}

.career-workstyle-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 64px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.career-workstyle-list li {
  position: relative;
  text-align: center;
}

.career-workstyle-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.career-workstyle-link:focus-visible {
  outline: 2px solid #323333;
  outline-offset: 4px;
}

.career-workstyle-image,
.career-workstyle-image-dummy {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
}

.career-workstyle-image {
  box-sizing: border-box;
  object-fit: cover;
}

.career-workstyle-image-dummy {
  background: #d9dde0;
}

.career-workstyle-list li p:first-of-type {
  font-size: 20px;
  font-weight: 700;
}

.career-workstyle-list li p:nth-of-type(2) {
  border-top: 1px solid #b2b2b2;
  margin-bottom: 0;
  padding: 24px 0 0;
  font-size: 16px;
  text-align: left;
}

.career-faq-list {
  width: min(1160px, calc(100% - 64px));
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.career-faq-list li {
  position: relative;
  padding: 24px 96px;
  border-top: 1px solid #fff;
  cursor: pointer;
  transition: background-color 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}

@media (hover: hover) and (pointer: fine) {
  .career-faq-list li:hover {
    background: rgba(255, 255, 255, 0.5);
  }
}

.career-faq-list li.is-open {
  background: #fff;
}

.career-faq-list li:last-child {
  border-bottom: 1px solid #fff;
}

.career-faq-question {
  position: relative;
  display: flex;
  gap: 105px;
  align-items: baseline;
  width: 100%;
  padding: 0 72px 0 0;
  border: 0;
  background: transparent;
  margin: 0;
  color: #616c86;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
}

.career-faq-question::marker {
  content: "";
}

.career-faq-question::before {
  z-index: 1;
}

.career-faq-question span {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-weight: 400;
}

.career-faq-question .career-faq-question-text {
  font-family: var(--font-ja);
  font-size: 20px;
  font-weight: 700;
}

.career-faq-question::before,
.career-faq-question::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 24px;
  height: 2px;
  background: #616c86;
  transform: translateY(-50%);
  transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}

.career-faq-question::after {
  transform: translateY(-50%) rotate(90deg);
}

.career-faq-question[aria-expanded="true"]::after {
  transform: translateY(-50%) rotate(0deg);
}

.career-faq-answer {
  display: flex;
  gap: 105px;
  max-height: 0;
  margin: 0;
  overflow: hidden;
  opacity: 0;
  will-change: max-height, opacity;
  transition:
    max-height 0.4s cubic-bezier(0.65, 0, 0.35, 1),
    margin-top 0.4s cubic-bezier(0.65, 0, 0.35, 1),
    opacity 0.25s ease-in-out;
}

.career-faq-list li.is-open .career-faq-answer {
  max-height: 240px;
  margin-top: 16px;
  opacity: 1;
}

.career-faq-answer span {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
}

.career-faq-button {
  width: min(1160px, calc(100% - 64px));
  margin: 32px auto 0;
}

.career-join-text {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.career-join-keyword {
  margin: 0;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.career-join-keywords {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 600px;
  max-width: 100%;
  margin-right: auto;
  margin-left: auto;
}

.career-join-keywords .career-join-keyword:nth-child(2) {
  transform: translateX(-8px);
  text-align: right;
}

.career-join-keyword span {
  display: inline-block;
  margin-left: 5px;
  padding: 13px 10px;
  border: 1px solid #d12c25;
  color: #d12c25;
  line-height: 1;
}

.career-join-image {
  width: 520px;
  max-width: 100%;
  height: auto;
  padding-top: 96px;
  margin-right: auto;
  margin-left: auto;
}

.career-gallery ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.career-gallery img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 1160px) {
  .career-intro,
  .career-links {
    padding-bottom: 0;
  }

  .career-links {
    padding-top: 0;
  }

  .career-workstyle {
    padding-top: 64px;
    padding-bottom: 44px;
  }

  .career-join {
    padding-top: 40px;
    padding-bottom: 60px;
  }

  .career-mv-visual {
    width: min(590px, 100%);
  }

  .career-lead {
    margin-top: 56px;
    margin-bottom: 56px;
  }

  .career-lead-title {
    margin-bottom: 24px;
  }

  .career-link-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .career-link-list li {
    width: auto;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .career-link-list a {
    padding: 16px;
    font-size: 16px;
    text-align: center;
  }

  .career-link-arrow {
    bottom: 24px;
    width: 32px;
    height: 32px;
  }

  .career-link-list-second {
    gap: 10px;
    margin-top: 64px;
  }

  .career-link-list-second p {
    top: 12px;
    left: 12px;
    font-size: 14px;
  }

  .career-workstyle-list {
    gap: 32px;
  }

  .career-workstyle-image-dummy {
    background: #b2b2b2;
  }

  .career-workstyle-list li p:first-of-type {
    font-size: 14px;
  }

  .career-workstyle-list li p:nth-of-type(2) {
    padding-top: 16px;
    font-size: 14px;
  }

  .career-faq-list,
  .career-faq-button {
    width: min(674px, calc(100% - 64px));
  }

  .career-faq-list li {
    padding: 12px 56px;
  }

  .career-faq-question {
    gap: 60px;
    padding-right: 48px;
    font-size: 20px;
  }

  .career-faq-question .career-faq-question-text {
    font-size: 14px;
  }

  .career-faq-question::before,
  .career-faq-question::after {
    width: 20px;
  }

  .career-faq-answer {
    gap: 60px;
  }

  .career-faq-list li.is-open .career-faq-answer {
    max-height: 360px;
  }

  .career-faq-answer span {
    font-size: 20px;
  }

  .career-faq-button {
    margin-top: 24px;
  }

  .career-join-keywords {
    gap: 16px;
    width: 400px;
  }

  .career-join-keyword {
    font-size: 20px;
  }

  .career-join-keyword span {
    padding: 9px 8px;
  }

  .career-join-image {
    width: min(260px, 100%);
  }

  .career-gallery ul {
    gap: 10px;
  }

}

@media (min-width: 768px) and (max-width: 1160px) {
  .career-join-keywords .career-join-keyword:nth-child(2) {
    transform: translateX(-12px);
  }

  .career-join-image {
    padding-top: 0;
  }
}

@media (max-width: 767px) {
  .career-join-keywords .career-join-keyword:nth-child(2) {
    transform: translateX(0);
  }

  .career-mv-image {
    border-top-right-radius: 32px;
  }

  .career-mv-visual .photo-credit {
    display: block;
  }

  #career-workstyle {
    padding-top: 56px;
  }

  .career-join-image {
    width: 180px;
    height: auto;
    padding-top: 0;
  }

  .career-rounded-panel {
    border-top-right-radius: 32px;
    border-bottom-left-radius: 32px;
  }

  .career-lead {
    margin-top: 40px;
    margin-bottom: 32px;
  }

  .career-lead-title {
    margin-bottom: 16px;
  }

  .career-link-list {
    grid-template-columns: 1fr;
  }

  .career-link-list li {
    aspect-ratio: auto;
  }

  .career-link-list a {
    justify-content: space-between;
    padding: 16px 24px;
    font-weight: 500;
    text-align: left;
  }

  .career-link-arrow {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    flex: 0 0 32px;
    transform: none;
  }

  .career-link-list a:focus-visible .career-link-arrow {
    transform: scale(1.12);
  }

  .career-link-list-second {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 40px;
  }

  .career-link-list-second p {
    font-size: 15px;
    line-height: 24px;
  }

  .career-link-list-second a::after {
    width: 32px;
    height: 32px;
  }

  .career-link-list-second > li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .career-workstyle-list {
    grid-template-columns: 1fr;
  }

  .career-workstyle-image,
  .career-workstyle-image-dummy {
    width: 156px;
    height: auto;
    margin-right: auto;
    margin-left: auto;
  }

  .career-workstyle-list li p:nth-of-type(2) {
    font-size: 13px;
  }

  .career-join-keyword {
    font-size: 15px;
  }

  .career-join-keywords {
    width: 230px;
  }

  .career-gallery ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .career-faq-question > span:first-child,
  .career-faq-answer > span:first-child {
    font-size: 13px;
  }

  .career-faq-question,
  .career-faq-answer {
    gap: 24px;
  }

  .career-faq-answer {
    font-size: 12px;
  }

  .career-faq-question {
    padding-right: 24px;
  }

  .career-faq-question::before,
  .career-faq-question::after {
    width: 12px;
  }

  .career-faq-question .career-faq-question-text {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 12px;
  }

  .career-faq-list li {
    padding: 12px 20px;
  }
}

@media (max-width: 767px) and (hover: hover) and (pointer: fine) {
  .career-link-list a:hover .career-link-arrow {
    transform: scale(1.12);
  }
}
