@charset "UTF-8";

/* =========================================================
   Work page
========================================================= */
.work-page {
  background: #fff;
  color: var(--color-text-main);
}
.work-page *,
.work-page *::before,
.work-page *::after {
  box-sizing: border-box;
}
.work-page em {
  font-style: normal;
}

/* Hero: shared lower-page hero dimensions are reused; only the media is split into four images. */
.work-page__hero-media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  overflow: hidden;
}
.work-page__hero-media-item {
  display: block;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.work-page__hero-media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.work-page__hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}

.work-page__hero-media img {
  opacity: 0;
  transform: scale(1.5);
  animation:
    workHeroImageFade 1.5s ease forwards,
    workHeroImageScale 2.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes workHeroImageFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes workHeroImageScale {
  from {
    transform: scale(1.5);
  }
  to {
    transform: scale(1);
  }
}

/* Intro */
.work-intro {
  padding: 100px 24px 92px;
  background: #f7f4f0;
}
.work-intro__inner {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 96px;
  align-items: center;
  width: min(100%, 980px);
  margin: 0 auto;
}
.work-intro__title {
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.65;
  letter-spacing: 0.05em;
}
.work-intro__title em {
  color: #e3494b;
}
.work-intro__text {
  font-size: 14px;
  font-weight: 500;
  line-height: 2;
  letter-spacing: 0.05em;
}
.work-intro__text p + p {
  margin-top: 26px;
}
.work-intro__text.js-common-reveal {
  transition-delay: 0.18s;
}

/* Marquee */
.work-marquee {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  overflow: hidden;
  background: #fff;
}
.work-marquee__row {
  overflow: hidden;
}
.work-marquee__track {
  display: flex;
  gap: 8px;
  width: max-content;
  animation: workMarqueeLeft 34s linear infinite;
  will-change: transform;
}
.work-marquee__row--right .work-marquee__track {
  animation-name: workMarqueeRight;
}
.work-marquee img {
  width: 320px;
  height: 118px;
  object-fit: cover;
  flex: 0 0 auto;
}

/* Marquee loop distance: one 4-image set */
@keyframes workMarqueeLeft {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-1312px);
  }
}
@keyframes workMarqueeRight {
  from {
    transform: translateX(-1312px);
  }
  to {
    transform: translateX(0);
  }
}

/* Product cards */
.work-products {
  padding: 110px 24px 120px;
  background: #fcfbf9;
}
.work-products__inner {
  width: min(100%, 1000px);
  margin: 0 auto;
}
.work-products__lead {
  text-align: center;
}
.work-products__lead h2 {
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.06em;
}
.work-products__lead h2 em {
  color: #e3494b;
}
.work-products__lead p {
  margin-top: 32px;
  font-size: 14px;
  font-weight: 500;
  line-height: 2;
  letter-spacing: 0.06em;
}
.work-products__columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 64px;
}
.work-category {
  display: flex;
  flex-direction: column;
  padding: 34px;
  border-radius: 24px;
}
.work-category--food {
  background: #ffe4cc;
}
.work-category--use {
  background: #cce0ff;
}
.work-category header {
  text-align: center;
  margin-bottom: 30px;
}
.work-category header h3 {
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.work-category header p {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0.05em;
}
.work-category--food header {
  color: #f07000;
}
.work-category--use header {
  color: #0065ff;
}
.work-category__grid {
  display: grid;
  flex: 1;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}
.work-category--use .work-category__grid {
  min-height: 0;
}
.work-category--use .work-card {
  display: flex;
  flex-direction: column;
}
.work-category--use .work-card__body {
  flex: 1;
}
.work-card {
  overflow: hidden;
  border-radius: 5px;
  background: #fff;
}
.work-card__image {
  overflow: hidden;
  aspect-ratio: 1.405 / 1;
}
.work-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.work-card__body {
  position: relative;
  padding: 16px 16px 28px;
}
.work-card__body h4 {
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.work-card__body p {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.8;
}

/* Q&A */
.work-qa {
  padding: 100px 24px 120px;
  background: #f7f4f0;
}
.work-qa__inner {
  width: min(100%, 1000px);
  margin: 0 auto;
}
.work-qa__head h2 {
  color: #e3494b;
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
}
.work-qa__head p {
  margin-top: 22px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.9;
  letter-spacing: 0.04em;
}
.work-qa__list {
  margin-top: 44px;
}
.work-qa__item {
  padding: 24px 30px;
  border-radius: 20px;
  background: #fff;
}
.work-qa__item + .work-qa__item {
  margin-top: 20px;
}
.work-qa__item dt,
.work-qa__item dd {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
}
.work-qa__item dt {
  color: #e3494b;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
}
.work-qa__item dt .work-qa__question {
  font: inherit;
  letter-spacing: inherit;
}
.work-qa__item dd {
  margin-top: 10px;
  color: #555;
  font-size: 13px;
  line-height: 1.9;
}
.work-qa__item dt > span:first-child,
.work-qa__item dd > span:first-child {
  font-family: "Nunito", sans-serif;
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
}
.work-qa__item dd > span {
  color: #777;
}
.work-qa__cta {
  width: 406px;
  max-width: 100%;
  margin-top: 22px;
}
.work-qa__cta small {
  display: grid;
  grid-template-columns: 19px 1fr 19px;
  align-items: end;
  width: 100%;
  height: 23px;
  margin: 0 0 8px;
  color: #e3494b;
  text-align: center;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 700;
}
.work-qa__cta small::before,
.work-qa__cta small::after {
  content: "";
  display: block;
  width: 19px;
  height: 20px;
  margin-bottom: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 19px 20px;
}
.work-qa__cta small::before {
  justify-self: start;
  background-image: url("/recruit/assets/img/work/work_cta-label_before.svg");
}
.work-qa__cta small::after {
  justify-self: end;
  background-image: url("/recruit/assets/img/work/work_cta-label_after.svg");
}
.work-qa__cta a {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 406px;
  max-width: 100%;
  height: 58px;
  padding: 0 24px;
  border: 1px solid #fff;
  border-left: 0;
  border-radius: 4px;
  background: #e3494b;
  color: #fff;
  text-align: center;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: opacity 0.3s ease;
}
.work-qa__cta a:hover {
  opacity: 0.8;
}

/* Reveal */

/* Responsive line-break utilities */
.sp-only {
  display: none;
}
.work-qa__cta--sp {
  display: none;
}

/* =========================================================
   SP / Tablet layout (390px basis)
========================================================= */
@media (max-width: 767px) {
  .sp-only {
    display: block;
  }
  .pc-only {
    display: none;
  }
  /* Keep intro copy on the intended Figma line breaks only. */
  .work-intro__text {
    width: calc(100vw - 6.1538vw);
    max-width: none;
    margin-left: calc((87.6923vw - (100vw - 6.1538vw)) / 2);
    margin-right: calc((87.6923vw - (100vw - 6.1538vw)) / 2);
    white-space: nowrap;
  }

  /* Hero */
  .work-page__hero-media {
    aspect-ratio: 390 / 280;
  }

  /* Intro */
  .work-intro {
    padding: 25.641vw 6.1538vw;
  }
  .work-intro__inner {
    display: flex;
    flex-direction: column;
    gap: 9.2308vw;
    width: 100%;
    max-width: unset;
    margin: 0 auto;
    text-align: center;
  }
  .work-intro__title {
    width: max-content;
    max-width: none;
    margin: 0 auto;
    font-size: 7.1795vw;
    line-height: 1.5;
    letter-spacing: 0.05em;
    white-space: nowrap;
  }
  .work-intro__text {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    font-size: 3.5897vw;
    font-weight: 700;
    line-height: 2;
    letter-spacing: 0.1em;
  }
  .work-intro__text p + p {
    margin-top: 7.1795vw;
  }

  /* Marquee */
  .work-marquee {
    gap: 1.3564vw;
  }
  .work-marquee__track {
    gap: 1.3564vw;
  }
  .work-marquee img {
    width: 61.041vw;
    height: 20.3462vw;
  }

  /* Products */
  .work-products {
    padding: 20.5128vw 6.1538vw;
  }
  .work-products__inner {
    width: 87.6923vw;
    max-width: 100%;
    margin: 0 auto;
  }
  .work-products__lead {
    padding: 0;
  }
  .work-products__lead h2 {
    font-size: 7.1795vw;
    line-height: 1.5;
    letter-spacing: 0.05em;
  }
  .work-products__lead p {
    width: calc(100vw - 6.1538vw);
    max-width: none;
    margin-top: 8.2051vw;
    margin-left: calc((87.6923vw - (100vw - 6.1538vw)) / 2);
    margin-right: calc((87.6923vw - (100vw - 6.1538vw)) / 2);
    font-size: 4.1026vw;
    font-weight: 700;
    line-height: 2;
    letter-spacing: 0.1em;
    white-space: nowrap;
  }
  .work-products__columns {
    display: flex;
    flex-direction: column;
    gap: 8.2051vw;
    margin-top: 8.2051vw;
  }

  /* Categories */
  .work-category {
    display: flex;
    flex-direction: column;
    width: 87.6923vw;
    max-width: 100%;
    margin: 0;
    gap: 6.1538vw;
    border-radius: 8.2051vw;
  }
  .work-category--food {
    padding: 12.3077vw 4.1026vw;
  }
  .work-category--use {
    padding: 12.3077vw 6.1538vw;
  }
  .work-category header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6.1538vw;
    margin: 0;
    padding: 0;
  }
  .work-category header h3 {
    width: 100%;
    font-size: 9.2308vw;
    line-height: 1.3;
    letter-spacing: 0.1em;
    text-align: center;
  }
  .work-category header p {
    width: 100%;
    margin: 0;
    font-family: "Zen Maru Gothic", sans-serif;
    font-size: 4.1026vw;
    font-weight: 700;
    line-height: 1.8;
    letter-spacing: 0.05em;
    text-align: center;
  }

  .work-category__grid,
  .work-category--use .work-category__grid {
    display: flex;
    flex-direction: column;
    gap: 6.1538vw;
    width: 100%;
    padding: 0;
  }

  /* Cards: SP is one vertical card per row in Figma */
  .work-card,
  .work-category--use .work-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: 2.0513vw;
    background: #fff;
  }
  .work-card__image {
    flex: 0 0 41.0256vw;
    width: 100%;
    height: 41.0256vw;
    min-height: 41.0256vw;
    aspect-ratio: auto;
  }
  .work-card__image img {
    width: 100%;
    height: 41.0256vw;
    object-fit: cover;
  }
  .work-card__body,
  .work-category--use .work-card__body {
    display: flex;
    flex: none;
    flex-direction: column;
    width: 100%;
    min-height: 46.6667vw;
    padding: 4.1026vw;
  }
  .work-card__body h4 {
    font-family: "Zen Maru Gothic", sans-serif;
    font-size: 5.1282vw;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.1em;
    text-align: center;
  }
  .work-card__body p {
    margin-top: 4.1026vw;
    font-family: "Noto Sans", "Noto Sans JP", sans-serif;
    font-size: 3.5897vw;
    font-weight: 400;
    line-height: 2;
  }

  /* Q&A */
  .work-qa {
    padding: 20.5128vw 6.1538vw;
  }
  .work-qa__inner {
    width: 87.6923vw;
    max-width: 100%;
    margin: 0 auto;
  }
  .work-qa__head {
    display: flex;
    flex-direction: column;
    gap: 6.1538vw;
  }
  .work-qa__head h2 {
    font-family: "Nunito", sans-serif;
    font-size: 12.3077vw;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
  }
  .work-qa__head p {
    margin: 0;
    font-size: 3.8462vw;
    font-weight: 700;
    line-height: 2;
    letter-spacing: 0.1em;
  }
  .work-qa__list {
    margin-top: 12.3077vw;
  }
  .work-qa__item {
    padding: 6.1538vw;
    border-radius: 8.2051vw;
  }
  .work-qa__item + .work-qa__item {
    margin-top: 6.1538vw;
  }
  .work-qa__item dt,
  .work-qa__item dd {
    display: grid;
    grid-template-columns: 10.2564vw minmax(0, 1fr);
    gap: 0;
  }
  .work-qa__item dt {
    font-family: "Zen Maru Gothic", sans-serif;
    font-size: 5.1282vw;
    font-weight: 700;
    line-height: 1.6;
    letter-spacing: 0.05em;
  }
  .work-qa__item dd {
    margin-top: 5.1282vw;
    color: #2a363c;
    font-family: "Noto Sans", "Noto Sans JP", sans-serif;
    font-size: 3.8462vw;
    font-weight: 400;
    line-height: 2;
    letter-spacing: 0.05em;
  }

  .work-qa__item dt .work-qa__question {
    font-family: "Zen Maru Gothic", sans-serif;
    font-size: 5.1282vw;
    font-weight: 700;
    line-height: 1.6;
    letter-spacing: 0.05em;
  }

  .work-qa__item dt > span:first-child,
  .work-qa__item dd > span:first-child {
    font-family: "Nunito", sans-serif;
    font-size: 8.2051vw;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
  }
  .work-qa__item dd > span:first-child {
    color: #696969;
  }
  .work-qa__cta--pc {
    display: none;
  }
  .work-qa__cta--sp {
    display: block;
    width: 100%;
    margin: 8.2051vw 0 0;
  }
  .work-qa__cta small {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4.1026vw;
    width: 100%;
    margin: 0 0 4.1026vw;
    font-size: 3.3333vw;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    white-space: nowrap;
  }
  .work-qa__cta small::before,
  .work-qa__cta small::after {
    content: "";
    display: block;
    flex: 0 0 0.5128vw;
    width: 0.5128vw;
    height: 6.1538vw;
    background: currentColor;
    border-radius: 256.1538vw;
  }
  .work-qa__cta small::before {
    transform: rotate(-28deg);
  }
  .work-qa__cta small::after {
    transform: rotate(28deg);
  }
  .work-qa__cta a {
    width: 100%;
    min-height: 16.4103vw;
  }

  /* Related links */
  .work-page .lower-related {
    padding: 20.5128vw 6.1538vw;
    background: rgba(227, 73, 75, 0.1);
  }
  .work-page .lower-related__inner {
    width: 87.6923vw;
    max-width: 100%;
    margin: 0 auto;
  }
  .work-page .lower-related__title {
    margin: 0 0 8.2051vw;
    font-family: "Zen Maru Gothic", sans-serif;
    font-size: 6.1538vw;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.1em;
    text-align: center;
  }
  .work-page .lower-related__list {
    display: flex;
    flex-direction: column;
    gap: 4.1026vw;
  }
  .work-page .lower-related__item {
    width: 100%;
    padding: 6.1538vw 4.1026vw;
    border-radius: 2.0513vw;
    background: #fff;
  }
  .work-page .lower-related__heading h3 {
    font-size: 4.6154vw;
    line-height: 1;
    letter-spacing: 0.05em;
  }
}

/* =========================================================
   Tablet (PC base / intro only SP composition)
   ========================================================= */
@media (min-width: 768px) and (max-width: 1023px) {
  .work-intro {
    padding: 100px 24px;
  }

  .work-intro .sp-only {
    display: block;
  }

  .work-intro__inner {
    display: flex;
    flex-direction: column;
    gap: 36px;
    width: 362px;
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
  }

  .work-intro__title {
    width: max-content;
    max-width: none;
    margin: 0 auto;
    font-size: 28px;
    line-height: 1.5;
    letter-spacing: 0.05em;
    white-space: nowrap;
  }

  .work-intro__text {
    width: 100%;
    max-width: none;
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 2;
    letter-spacing: 0.1em;
    white-space: normal;
  }

  .work-intro__text p + p {
    margin-top: 28px;
  }

  .work-category,
  .work-category--use {
    padding-left: 24px;
    padding-right: 24px;
  }

  .work-products,
  .work-qa,
  .work-page .lower-related {
    padding-top: 80px;
    padding-bottom: 80px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .work-page__hero-media img {
    opacity: 1;
    animation: none;
  }

  .work-marquee__track {
    animation: none;
  }
}

/* =========================================================
   PC layout (1024px and wider)
========================================================= */
@media (min-width: 1024px) {
  .work-page__hero-media {
    aspect-ratio: 816 / 470;
  }

  /* Intro */
  .work-intro {
    padding: 100px 24px;
  }
  .work-intro__inner {
    grid-template-columns: 504px 530px;
    gap: 24px;
    width: 1060px;
  }
  .work-intro__title {
    width: 440px;
    font-size: 40px;
    line-height: 1.8;
    letter-spacing: 0;
  }
  .work-intro__text {
    font-size: 16px;
    font-weight: 700;
    line-height: 2;
    letter-spacing: 0.1em;
  }

  /* Product lead / columns */
  .work-products {
    padding: 100px 24px;
  }
  .work-products__inner {
    width: 1000px;
  }
  .work-products__lead h2 {
    font-size: 40px;
    line-height: 1.1;
    letter-spacing: 0;
  }
  .work-products__lead p {
    margin-top: 24px;
    font-size: 20px;
    font-weight: 700;
    line-height: 2;
    letter-spacing: 0.1em;
  }
  .work-products__columns {
    grid-template-columns: repeat(2, 488px);
    gap: 24px;
    margin-top: 64px;
    align-items: stretch;
  }

  /* Product category */
  .work-category {
    width: 488px;
    min-height: 1141px;
    padding: 40px;
    gap: 25px;
    border-radius: 32px;
  }
  .work-category header {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin: 0;
  }
  .work-category header h3 {
    font-size: 40px;
    line-height: 1.3;
    letter-spacing: 0.1em;
  }
  .work-category header p {
    margin-top: 0;
    font-size: 20px;
    line-height: 1.8;
    letter-spacing: 0.05em;
  }
  .work-category__grid,
  .work-category--use .work-category__grid {
    flex: none;
    grid-template-columns: repeat(2, 196px);
    grid-template-rows: repeat(2, 431px);
    gap: 16px;
    width: 408px;
    min-height: 878px;
  }
  .work-card,
  .work-category--use .work-card {
    display: flex;
    flex-direction: column;
    width: 196px;
    height: 431px;
    border-radius: 8px;
  }
  .work-card__image {
    flex: 0 0 160px;
    width: 196px;
    height: 160px;
    aspect-ratio: auto;
  }
  .work-card__body,
  .work-category--use .work-card__body {
    flex: 1;
    min-height: 271px;
    padding: 16px 12px;
  }
  .work-card__body h4 {
    font-family: "Zen Maru Gothic", sans-serif;
    font-size: 24px;
    line-height: 1.3;
    letter-spacing: 0.1em;
  }
  .work-card__body p {
    margin-top: 16px;
    font-family: "Noto Sans", "Noto Sans JP", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 2;
  }

  /* Q&A */
  .work-qa {
    padding: 100px 24px;
  }
  .work-qa__inner {
    width: 987px;
  }
  .work-qa__head h2 {
    font-family: "Nunito", sans-serif;
    font-size: 64px;
    line-height: 1;
    letter-spacing: 0.02em;
  }
  .work-qa__head p {
    width: 683px;
    margin-top: 24px;
    font-size: 20px;
    font-weight: 700;
    line-height: 2;
    letter-spacing: 0.1em;
  }
  .work-qa__list {
    margin-top: 48px;
  }
  .work-qa__item {
    padding: 32px;
    border-radius: 32px;
  }
  .work-qa__item + .work-qa__item {
    margin-top: 24px;
  }
  .work-qa__item dt,
  .work-qa__item dd {
    grid-template-columns: 40px minmax(0, 1fr);
  }
  .work-qa__item dt {
    gap: 10px;
    font-family: "Zen Maru Gothic", sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.6;
    letter-spacing: 0.05em;
  }
  .work-qa__item dd {
    gap: 10px;
    margin-top: 20px;
    color: #2a363c;
    font-family: "Noto Sans", "Noto Sans JP", sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 2;
    letter-spacing: 0.05em;
  }
  .work-qa__item dt > span:first-child,
  .work-qa__item dd > span:first-child {
    font-family: "Nunito", sans-serif;
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
  }
  .work-qa__item dd > span:first-child {
    color: #696969;
  }
  .work-qa__item dt .work-qa__question {
    font-family: "Zen Maru Gothic", sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.6;
    letter-spacing: 0.05em;
  }
  .work-qa__cta--pc {
    display: block;
    margin-top: 24px;
  }
}
