@charset "utf-8";
:root {
  --brand-yellow: #f0e33b;
  --brand-green: #abe244;
  --black: #3b3b3b;
  --dark-green: #96c73a;
  --overlay: rgba(0, 0, 0, 0.4);
  --overlay-hover: rgba(0, 0, 0, 0.6);
  --gradient: linear-gradient(90deg, #b7f34e, #f0df3d);
}

/* ===== FV ===== */
.sec-top-fv {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.sec-top-fv img {
  width: 100%;
  height: auto;
  display: block;
}

img.top-fv__sp {
  display: none;
}

.top-fv__ttlarea {
  position: absolute;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: clamp(24px, 8vw, 120px);
  padding-right: clamp(16px, 4vw, 60px);
  padding-bottom: 100px;
  max-width: min(52vw, 880px);
}

.top-fv__ttl {
  margin: 0 0 14px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.04em;
  font-size: clamp(28px, 5vw, 50px);

  color: #94d30c;

  background: linear-gradient(90deg, #f9db32 0%, #4d9b53 55%, #94d30c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.top-fv__subttl {
  margin: 0;
  color: var(--dark-green);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.02em;
  font-size: clamp(12px, 1.8vw, 12px);
}

@media screen and (max-width: 768px) {
  img.top-fv__pc {
    display: none;
  }
  img.top-fv__sp {
    display: block;
  }

  .top-fv__ttlarea {
    justify-content: flex-start;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 36px;
    max-width: none;
  }

  .top-fv__ttl {
    margin-bottom: 4px;
    font-size: clamp(22px, 7vw, 34px);
    line-height: 1.4;
  }

  .top-fv__subttl {
    font-size: clamp(11px, 2.5vw, 14px);
  }
}

@supports (font-smooth: antialiased) {
  .top-fv__ttl,
  .top-fv__subttl {
    font-smooth: antialiased;
  }
}

/* ===== 事業内容 ===== */
.sec-services {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 18px;
}

.services__grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .services__grid {
    grid-template-columns: repeat(12, 1fr);
  }
  .card--xl {
    grid-column: 1 / span 6;
    grid-row: 1;
    aspect-ratio: 16/9;
  }
  .card--lg {
    grid-column: 7 / span 6;
    grid-row: 1;
    aspect-ratio: 16/9;
  }
  .card--sm {
    aspect-ratio: 16/10;
  }
  .row2-col1 {
    grid-column: 1 / span 4;
    grid-row: 2;
  }
  .row2-col2 {
    grid-column: 5 / span 4;
    grid-row: 2;
  }
  .row2-col3 {
    grid-column: 9 / span 4;
    grid-row: 2;
  }
}

@media (max-width: 899.98px) {
  .services__grid-card {
    aspect-ratio: 16/10;
  }
}

.services__grid-card {
  --bg: url("/img/front-page/img_servicer01.jpg");
  position: relative;
  align-content: flex-end;
  padding: 22px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  color: #fff;
  text-decoration: none;
  isolation: isolate;
  background: center/cover no-repeat var(--bg);
  transform: translateZ(0);
  transition: transform 0.35s ease;
}
.services__grid-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--overlay);
  z-index: -1;
  transition: background 0.25s ease;
}
.services__grid-card:hover,
.services__grid-card:focus-visible {
  transform: scale(1.01);
}
.services__grid-card:hover::after,
.services__grid-card:focus-visible::after {
  background: var(--overlay-hover);
}

.services__grid-card .tag {
  font-size: clamp(12px, 1.8vw, 14px);
  opacity: 0.9;
  margin-bottom: 6px;
  color: #fff;
}
.services__grid-card .title {
  font-weight: 500;
  font-size: clamp(20px, 3.2vw, 26px);
  line-height: 1.2;
  margin: 0 0 6px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  color: #fff;
}
.services__grid-card .desc {
  font-size: clamp(14px, 1.8vw, 14px);
  opacity: 0.95;
  margin: 0 56px 0 0;
  line-height: 1.6;
  color: #fff;
}

.services__grid-card .arrow {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 46px;
  height: 46px;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.15), 0 6px 16px rgba(0, 0, 0, 0.25);
}
.services__grid-card:hover .arrow,
.services__grid-card:focus-visible .arrow {
  transform: translateX(4px);
}

@media screen and (max-width: 768px) {
  .sec-services {
    margin: 60px auto;
  }

  .services__grid-card .tag {
    margin-bottom: 10px;
  }
  .services__grid-card .title {
    margin: 0 0 10px;
  }
}

/* ===== 強み ===== */
.concept__bg {
  background: linear-gradient(to bottom, #f6f5e4 0%, #ffffff 100%);
}

.concept__inner {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 18px;
}

.concept__txtarea {
  width: 56%;
}

.concept__img {
  max-width: 470px;
  height: 100%;
}

.scroll-infinity-wrap {
  display: flex;
  overflow: hidden;
}
.scroll-infinity-list {
  display: flex;
  list-style: none;
  padding: 0;
}
.scroll-infinity-list-left {
  animation: infinity-scroll-left 40s infinite linear 0.5s both;
}
.scroll-infinity-list-right {
  animation: infinity-scroll-right 40s infinite linear 0.5s both;
}
.scroll-infinity-item > img {
  max-inline-size: none;
}

@keyframes infinity-scroll-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

@keyframes infinity-scroll-right {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

.sec-concept .scroll-infinity-item > img {
  height: 360px;
  width: auto;
  margin-right: 30px;
}

@media screen and (max-width: 900px) {
  .concept__inner {
    gap: 10px;
  }

  .concept__img {
    max-width: 360px;
  }

  .concept__inner .ttl-block {
    margin-bottom: 20px;
  }
}

@media screen and (max-width: 768px) {
  .concept__inner {
    display: block;
    padding: 20px 18px 0;
  }

  .concept__txtarea {
    width: 100%;
  }

  .concept__img {
    margin-top: 30px;
    max-width: 100%;
  }

  .scroll-infinity-item > img {
    width: 1200px;
    height: auto;
  }

  .sec-concept .scroll-infinity-item > img {
    height: 280px;
    margin-right: 20px;
    margin-top: 48px;
  }
}

/* ===== 採用情報 ===== */
.sec-recruit {
  margin-top: 80px;
  color: #fff;
  background-image: url(../img/front-page/img_recruit-bg.png);
}

.recruit__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 18px;
}

.recruit__txtarea {
  width: 56%;
}

.recruit__img {
  max-width: 470px;
  height: 100%;
}

.recruit__subttl {
  margin-bottom: 10px;
  font-size: clamp(18px, 1.8vw, 22px);
}

.recruit__txt {
  font-weight: 300;
}

@media screen and (max-width: 900px) {
  .recruit__inner {
    gap: 10px;
  }

  .recruit__img {
    max-width: 360px;
  }

  .recruit__inner .ttl-block {
    margin-bottom: 20px;
  }
}

@media screen and (max-width: 768px) {
  .sec-recruit {
    margin-top: 60px;
  }

  .recruit__inner {
    display: block;
    padding: 40px 18px 0;
  }

  .recruit__img {
    margin: 30px 0 60px;
    max-width: 100%;
  }

  .recruit__txtarea {
    width: 100%;
  }
}

/* ===== スタッフブログ ===== */
.sec-blog {
  margin: 100px auto;
}

.blog__list {
  --col-gap: 32px;
  --row-gap: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: var(--col-gap);
  row-gap: var(--row-gap);
}

.blog__list > a {
  display: block;
  position: relative;
  padding-bottom: 16px;
  text-decoration: none;
  color: inherit;
}

.blog__list > a:nth-child(2n)::after {
  content: "";
  position: absolute;
  left: calc(-100% - var(--col-gap));
  right: 0;
  bottom: -8px;
  height: 1px;
  background: #ddd;
}

.blog__list > a:nth-child(2n):nth-last-child(-n + 2)::after {
  display: none;
}

.blog__item {
  display: flex;
  gap: 16px;
}

.blog__thumb img {
  width: 300px;
  height: 168px;
  object-fit: cover;
  object-position: center;
}

.blog__txtarea {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
}

.blog__h3 {
  line-height: 1.6;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

.blog__meta {
  text-align: right;
}

@media screen and (max-width: 1236px) {
  .sec-blog {
    padding: 0 18px;
  }
}

@media screen and (max-width: 1024px) {
  .sec-blog {
    margin: 60px auto 40px;
  }

  .blog__list {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .blog__thumb img {
    width: 150px;
    height: 84px;
  }

  .blog__txtarea {
    width: 100%;
  }

  .blog__h3 {
    line-height: 1.4;
    font-size: 14px;
    -webkit-line-clamp: 3;
  }

  .blog__meta {
    font-size: 12px;
  }

  .blog__list > a:nth-child(2n)::after {
    content: none !important;
    display: none !important;
  }

  .blog__list > a {
    padding-bottom: 0;
  }

  .blog__list a {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
  }
}
