/* and roots 求人特集と、トップFV直下の3バナー */

.l-home-picks {
  padding: 28px 0 12px;
  background: #fff;
  overflow: hidden;
}

.l-home-picks__viewport {
  overflow: hidden;
  width: 100%;
}

.l-home-picks__track {
  display: flex;
  width: max-content;
  animation: qsta-picks-scroll 42s linear infinite;
}

.l-home-picks__track:hover,
.l-home-picks__track:focus-within {
  animation-play-state: paused;
}

.l-home-picks__group {
  display: flex;
  flex: 0 0 auto;
  align-items: stretch;
  gap: 12px;
  padding-right: 12px;
}

@keyframes qsta-picks-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-16.6667%);
  }
}

.c-home-pick {
  display: flex;
  flex: 0 0 min(352px, 78vw);
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  width: min(352px, 78vw);
  min-height: 148px;
  box-sizing: border-box;
  padding: 20px 22px 18px;
  text-decoration: none;
  color: #1c1c1c;
  background: #fff;
  border: 1px solid #e4e2dc;
}

.c-home-pick:hover,
.c-home-pick:focus-visible {
  border-color: #1c1c1c;
  color: #1c1c1c;
}

.c-home-pick:focus-visible {
  outline: 2px solid #1c1c1c;
  outline-offset: 3px;
}

.c-home-pick__kicker {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.4;
}

.c-home-pick__title {
  display: block;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.04em;
  line-break: strict;
  word-break: auto-phrase;
  text-wrap: pretty;
}

.c-home-pick__note {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: #5c5c5c;
}

.c-home-pick__logo {
  display: block;
  width: 156px;
  aspect-ratio: 243 / 50;
  overflow: hidden;
}

.c-home-pick__logo img {
  display: block;
  width: calc(100% * 300 / 243);
  max-width: none;
  height: auto;
  margin-left: calc(100% * -28 / 243);
  margin-top: calc(100% * -119 / 243);
}

.c-home-pick--image {
  display: block;
  padding: 0;
  gap: 0;
  min-height: 0;
  height: auto;
  border: 0;
  background: #1c1c1c;
  overflow: hidden;
  line-height: 0;
  aspect-ratio: 900 / 500;
}

.c-home-pick--image img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  object-fit: cover;
  object-position: center;
}

.c-home-pick--image:hover,
.c-home-pick--image:focus-visible {
  border-color: transparent;
}

.c-home-pick--radio .c-home-pick__kicker {
  color: #ce5548;
}

.c-home-pick--exec {
  color: #f7f4ee;
  background: #1c2b33;
  border-color: #1c2b33;
}

.c-home-pick--exec .c-home-pick__kicker {
  color: #e6d3ae;
}

.c-home-pick--exec .c-home-pick__note {
  color: rgba(247, 244, 238, 0.72);
}

.c-home-pick--exec:hover,
.c-home-pick--exec:focus-visible {
  color: #f7f4ee;
  border-color: #e6d3ae;
}

@media screen and (min-width: 769px) {
  .c-home-pick {
    flex-basis: 352px;
    width: 352px;
  }
}

.p-roots {
  color: #1c1c1c;
  background: #fff;
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.85;
}

.p-roots * {
  box-sizing: border-box;
}

.p-roots-wrap {
  width: min(960px, calc(100% - 40px));
  margin: 0 auto;
}

.p-roots-wrap--jobs,
.p-roots-wrap--narrow {
  width: min(840px, calc(100% - 40px));
}

.p-roots-fv {
  position: relative;
  padding: 72px 0 64px;
  overflow: hidden;
}

.p-roots-fv__photo {
  --roots-fv-gutter: max(20px, (100vw - 960px) / 2);
  display: block;
  width: calc(100% + (var(--roots-fv-gutter) * 2));
  margin: 8px calc(var(--roots-fv-gutter) * -1) 28px;
}

.p-roots-fv__photo img {
  display: block;
  width: 100%;
  height: auto;
}

.p-roots-fv .p-roots-wrap {
  position: relative;
  z-index: 1;
}

.p-roots-brand {
  width: min(180px, 100%);
  aspect-ratio: 243 / 50;
  margin: 0 0 24px;
  overflow: hidden;
}

.p-roots-brand img {
  display: block;
  width: calc(100% * 300 / 243);
  max-width: none;
  height: auto;
  margin-left: calc(100% * -28 / 243);
  margin-top: calc(100% * -119 / 243);
}

.p-roots-kicker {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8a8a8a;
}

.p-roots :is(p, li, .p-roots-job__gain, .p-roots-note, .p-roots-intro, .p-roots-card p, .p-roots-spec__line, .p-roots-faq p, .p-roots-flow p, .p-roots-thanks p) {
  line-break: strict;
  word-break: auto-phrase;
  text-wrap: pretty;
}

.p-roots-keep {
  white-space: nowrap;
}

.p-roots-sp {
  display: none;
}

.p-roots-fv__title {
  margin: 0;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.04em;
}

.p-roots-lead {
  margin: 24px 0 0;
  font-size: 16px;
  line-height: 1.9;
}

.p-roots-note {
  margin: 16px 0 0;
  font-size: 13px;
  color: #6b6b6b;
}

.p-roots-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.p-roots-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  min-width: 200px;
  padding: 0 24px;
  border: 1px solid #1c1c1c;
  background: #1c1c1c;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.p-roots-btn:hover,
.p-roots-btn:focus-visible {
  background: #333;
  border-color: #333;
  color: #fff;
}

.p-roots-btn:focus-visible {
  outline: 2px solid #1c1c1c;
  outline-offset: 3px;
}

.p-roots-btn--ghost {
  background: #fff;
  color: #1c1c1c;
}

.p-roots-btn--ghost:hover,
.p-roots-btn--ghost:focus-visible {
  background: #f6f5f2;
  color: #1c1c1c;
  border-color: #1c1c1c;
}

.p-roots-section {
  padding: 72px 0;
}

.p-roots-section--paper {
  background: #f7f6f3;
}

.p-roots-heading {
  margin: 0 0 16px;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.04em;
}

.p-roots-intro {
  margin: 0 0 32px;
  max-width: 40em;
  color: #3a3a3a;
}

.p-roots-empathy {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.p-roots-empathy li {
  margin: 0;
  padding: 22px 22px 20px;
  background: #fff;
  border: 1px solid #e6e4de;
  border-radius: 8px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.p-roots-appeal {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px 48px;
}

.p-roots-appeal-layout {
  display: grid;
  gap: 32px;
}

.p-roots-appeal-photos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.p-roots-appeal-photos img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center 42%;
}

.p-roots-appeal-photos img:last-child {
  object-position: center 30%;
}

.p-roots-card {
  padding: 0;
  background: none;
  border: 0;
}

.p-roots-card h3,
.p-roots-group {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.p-roots-card h3 {
  position: relative;
  margin-bottom: 16px;
  padding-bottom: 8px;
}

.p-roots-card h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 84px;
  height: 12px;
  background: url("../images/recruit-special/title-marker.png") left center / 100% 100% no-repeat;
}

.p-roots-card p,
.p-roots-job__body p {
  margin: 0;
}

.p-roots-group {
  margin: 36px 0 12px;
  padding-top: 8px;
  font-size: 14px;
  letter-spacing: 0.12em;
  color: #6b6b6b;
}

.p-roots-jobs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.p-roots-job {
  background: #fff;
  border: 1px solid #e4e2dc;
}

.p-roots-job summary {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 20px 18px;
  cursor: pointer;
  list-style: none;
}

.p-roots-job summary::-webkit-details-marker {
  display: none;
}

.p-roots-job summary:focus-visible {
  outline: 2px solid #1c1c1c;
  outline-offset: -2px;
}

.p-roots-job__brand {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #8a8a8a;
}

.p-roots-job__title {
  display: block;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.04em;
}

.p-roots-job__gain {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  color: #3a3a3a;
}

.p-roots-job__side {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}

.p-roots-job__meta {
  font-size: 13px;
  color: #5c5c5c;
}

.p-roots-job__toggle {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.p-roots-job .is-open {
  display: none;
}

.p-roots-job[open] .is-closed {
  display: none;
}

.p-roots-job[open] .is-open {
  display: inline;
}

.p-roots-job__body {
  padding: 0 20px 24px;
  border-top: 1px solid #eeeae4;
}

.p-roots-job__body > p {
  margin: 18px 0;
}

.p-roots-spec {
  display: grid;
  gap: 18px;
}

.p-roots-spec h4 {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.p-roots-list {
  margin: 0;
  padding-left: 1.2em;
}

.p-roots-list li + li {
  margin-top: 4px;
}

.p-roots-spec__line {
  margin: 8px 0 0;
  font-size: 15px;
}

.p-roots-job__body .p-roots-btn {
  margin-top: 22px;
}

.p-roots-skills {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin: 32px 0 0;
  padding: 12px 4px;
  list-style: none;
}

.p-roots-skills li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  margin: 0;
  padding: 24px 20px;
  background: #f7f6f3;
  border: 0;
  border-radius: 18px;
  box-shadow:
    9px 9px 16px rgba(163, 155, 140, 0.45),
    -9px -9px 16px rgba(255, 255, 255, 0.9);
  color: #1c1c1c;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.5;
  text-align: center;
}

.p-roots-reel {
  margin-top: 40px;
}

.p-roots-reel:not(.is-ready) .p-roots-reel__viewport {
  visibility: hidden;
}

.p-roots-reel.is-jumping .p-roots-reel__slide {
  transition: none;
}

.p-roots-reel__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 22px 0 0;
}

.p-roots-reel__dot {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.p-roots-reel__dot::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  margin: 12px auto;
  border-radius: 50%;
  background: #c4c0b8;
}

.p-roots-reel__dot.is-current::before {
  background: #1c1c1c;
}

.p-roots-reel__dot:focus-visible {
  outline: 2px solid #1c1c1c;
  outline-offset: 2px;
}

.p-roots-reel__viewport {
  container-type: inline-size;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.p-roots-reel__viewport::-webkit-scrollbar {
  display: none;
}

.p-roots-reel__track {
  display: flex;
  align-items: center;
  width: max-content;
}

.p-roots-reel__slide {
  flex: 0 0 100cqi;
  margin: 0;
  scroll-snap-align: start;
}

.p-roots-reel__slide img {
  display: block;
  width: 100%;
  height: calc(100cqi * 2 / 3);
  object-fit: cover;
  object-position: center;
}

.p-roots-reel__slide:nth-child(5n + 1) img {
  object-position: center 42%;
}

.p-roots-reel__slide:nth-child(5n + 4) img {
  object-position: center 28%;
}

.p-roots-flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.p-roots-flow li {
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid #1c1c1c;
}

.p-roots-flow span {
  display: block;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: #8a8a8a;
}

.p-roots-flow strong {
  display: block;
  margin: 6px 0;
  font-size: 20px;
}

.p-roots-flow p {
  margin: 0;
  color: #3a3a3a;
}

.p-roots-faq details {
  border-top: 1px solid #e4e2dc;
}

.p-roots-faq details:last-child {
  border-bottom: 1px solid #e4e2dc;
}

.p-roots-faq summary {
  padding: 18px 4px;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.03em;
  list-style: none;
}

.p-roots-faq summary::-webkit-details-marker {
  display: none;
}

.p-roots-faq summary:focus-visible {
  outline: 2px solid #1c1c1c;
  outline-offset: 2px;
}

.p-roots-faq details p {
  margin: 0;
  padding: 0 4px 18px;
  color: #3a3a3a;
}

.p-roots-entry {
  scroll-margin-top: 24px;
}

.p-roots-form {
  display: grid;
  gap: 18px;
}

.p-roots-form__alert,
.p-roots-field__error {
  margin: 8px 0 0;
  color: #9a3b32;
  font-size: 13px;
  line-height: 1.6;
}

.p-roots-field label,
.p-roots-consent label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.p-roots-field label span,
.p-roots-consent label span {
  margin-left: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #9a3b32;
}

.p-roots-field label span.is-optional {
  color: #8a8a8a;
}

.p-roots-field input,
.p-roots-field select,
.p-roots-field textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #d9d6d0;
  border-radius: 0;
  background: #fff;
  color: #1c1c1c;
  font: inherit;
  font-size: 16px;
}

.p-roots-field textarea {
  min-height: 140px;
  resize: vertical;
}

.p-roots-field input:focus,
.p-roots-field select:focus,
.p-roots-field textarea:focus {
  outline: 2px solid #1c1c1c;
  outline-offset: 1px;
  border-color: #1c1c1c;
}

.p-roots-field.is-error input,
.p-roots-field.is-error select,
.p-roots-field.is-error textarea {
  border-color: #9a3b32;
}

.p-roots-consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  column-gap: 10px;
  align-items: start;
}

.p-roots-consent input {
  width: 18px;
  height: 18px;
  margin-top: 4px;
}

.p-roots-consent label {
  margin: 0;
  font-weight: 500;
  line-height: 1.7;
}

.p-roots-consent .p-roots-field__error {
  grid-column: 1 / -1;
}

.p-roots-consent a {
  color: #1c1c1c;
}

.p-roots-form button.p-roots-btn {
  justify-self: start;
  appearance: none;
  cursor: pointer;
  font-family: inherit;
}

.p-roots-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.p-roots-thanks p {
  margin: 0 0 8px;
  font-size: 18px;
}

.p-roots-close {
  padding: 80px 0;
  background: #1c1c1c;
  color: #f7f6f3;
}

.p-roots-close h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.45;
}

.p-roots-close p {
  margin: 16px 0 0;
}

.p-roots-btn--light {
  background: #fff;
  color: #1c1c1c;
  border-color: #fff;
}

.p-roots-btn--light:hover,
.p-roots-btn--light:focus-visible {
  background: #f3f1ec;
  color: #1c1c1c;
  border-color: #f3f1ec;
}

.p-roots-btn--line {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}

.p-roots-btn--line:hover,
.p-roots-btn--line:focus-visible {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.p-roots-btn--line:focus-visible,
.p-roots-btn--light:focus-visible {
  outline-color: #fff;
}

@media screen and (min-width: 769px) {
  .p-roots-fv {
    padding: 96px 0 80px;
  }

  .p-roots-sp {
    display: none;
  }

  .p-roots-section {
    padding: 96px 0;
  }

  .p-roots-skills {
    grid-template-columns: 1fr 1fr;
  }

  .p-roots-reel {
    margin-top: 56px;
  }

  .p-roots-reel__track {
    gap: 28px;
    padding: 26px calc((100cqi - min(620px, 54cqi)) / 2);
  }

  .p-roots-reel__slide {
    flex-basis: min(620px, 54cqi);
    scroll-snap-align: center;
    transform: scale(0.9);
    transition: transform 0.55s ease;
  }

  .p-roots-reel__slide.is-current {
    transform: scale(1.05);
  }

  .p-roots-reel__slide img {
    height: min(380px, 34cqi);
  }

  .p-roots-empathy {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
  }

  .p-roots-empathy li {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 112px;
    padding: 20px 24px;
    text-align: center;
  }

  .p-roots-empathy li:nth-child(1) { grid-column: 2 / span 2; grid-row: 1; }
  .p-roots-empathy li:nth-child(2) { grid-column: 4 / span 2; grid-row: 1; }
  .p-roots-empathy li:nth-child(3) { grid-column: 1 / span 2; grid-row: 2; }
  .p-roots-empathy li:nth-child(4) { grid-column: 3 / span 2; grid-row: 2; }
  .p-roots-empathy li:nth-child(5) { grid-column: 5 / span 2; grid-row: 2; }

  .p-roots-empathy li span {
    min-width: 0;
    max-width: 100%;
  }

  .p-roots-appeal,
  .p-roots-appeal-photos {
    grid-template-columns: 1fr 1fr;
  }

  .p-roots-appeal-photos img {
    height: 220px;
  }

  .p-roots-flow {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }

  .p-roots-job summary {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
  }

  .p-roots-job__main {
    flex: 1 1 auto;
  }

  .p-roots-job__side {
    flex: 0 0 220px;
    flex-direction: column;
    align-items: flex-end;
  }
}

@media screen and (min-width: 1100px) {
  .p-roots-fv .p-roots-wrap {
    position: static;
  }

  .p-roots-fv .p-roots-wrap > :not(.p-roots-fv__photo) {
    position: relative;
    z-index: 1;
  }

  .p-roots-fv__photo {
    position: absolute;
    top: 0;
    right: 0;
    left: auto;
    height: 100%;
    width: calc((100% - min(960px, 100%)) / 2 + 520px);
    max-width: 68%;
    margin: 0;
    pointer-events: none;
  }

  .p-roots-fv__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 62% center;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.12) 24%, rgba(0, 0, 0, 0.55) 46%, #000 66%, #000 100%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.12) 24%, rgba(0, 0, 0, 0.55) 46%, #000 66%, #000 100%);
  }

  .p-roots-skills {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media screen and (max-width: 768px) {
  .p-roots-sp {
    display: inline;
  }

  br.p-roots-pc {
    display: none;
  }

  .p-roots-fv__title {
    font-size: 26px;
    letter-spacing: 0.02em;
  }

  .p-roots-heading,
  .p-roots-close h2 {
    letter-spacing: 0.03em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .l-home-picks *,
  .p-roots * {
    scroll-behavior: auto;
  }

  .l-home-picks__track {
    animation: none;
  }

  .p-roots-reel__slide,
  .p-roots-reel__slide.is-current {
    transform: none;
    transition: none;
  }

  .l-home-picks__group[aria-hidden="true"] {
    display: none;
  }
}
